Hello dear list members,
I am using Ant 1.5Beta1 with Xalan 2.3.1 and Xerces .
I have defined an XML Catalog this way:
<project default="all" basedir=".">
<xmlcatalog id="generalcatalog">
<dtd
publicId="-//W3C//DTD XHTML Basic 1.0//EN"
location="src/dtds/xhtml-basic/xhtml-basic10.dtd"
/>
<dtd
publicId="-//W3C//DTD XHTML Stylesheets 1.0//EN"
location="src/dtds/xhtml-modularization/DTD/xhtml-style-1.mod"
/>
<dtd
publicId="-//W3C//ELEMENTS Module Qualified Names Template 1.0//EN"
location="src/dtds/xhtml-modularization/DTD/templates/template-qname-1.mod"
/>
<!-- ... -->
</xmlcatalog>
<!-- ... -->
I apply the xmlvalidate task this way:
<target
name ="validateDest"
description="Validiert die generierten Dateien."
depends ="update, transform"
>
<xmlvalidate warn="no">
<xmlcatalog refid="generalcatalog" />
<fileset dir="${dest/htdocs}">
<include name="**/*.html"/>
<include name="**/*.svg"/>
</fileset>
</xmlvalidate>
</target>
This works fine. All entities are resolved via the xml catalog, not via the system
identifier.
I apply the style task this way:
<target
name ="transform"
description="Generiert die HTML-Dateien."
depends ="validateSource, update, init"
>
<style
basedir="${source/htdocs}"
destdir="${dest/htdocs}"
style="${source}/tools/transform.xsl"
includes="**/*.html"
>
<xmlcatalog refid="generalcatalog" />
</style>
<!-- ... -->
</target>
This fails.
The transformation references other files using the document() functions. The entities
of the files referenced by the document() functions
are not resolved via the xml catalog, but via their system identifiers.
I think this is a bug.
I do not know wether this is a bug in Ant or the XML Parser in use (Xerces 2.0.1) or
the Xalan version in use (Xalan 2.3.1).
Has anyone else seen this problem?
Does someone know a solution?
Am I doing something wrong?
Greetings and thanks for your time
--
Christian Wolfgang Hujer
Gesch�ftsf�hrender Gesellschafter
ITCQIS GmbH
Telefon: +49 (089) 27 37 04 37
Telefax: +49 (089) 27 37 04 39
E-Mail: mailto:[EMAIL PROTECTED]
WWW: http://www.itcqis.com/
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>