xsl-list
[Top] [All Lists]

[xsl] saxon9-ant.jar and <xmlcatalog/>

2009-01-25 10:06:04
Hello,

how can I submit an xmlcatalog to saxon9-ant.jar (see
http://www.saxonica.com/documentation/using-xsl/xsltfromant.html)?

I've tried

<xslt2 in="${src_file}" out="${build}/trash.xml"
style="${lib}/tools/test.xsl" force="true">
    <param name="files_prefix" expression="${files_prefix}"/>
    <xmlcatalog refid="catalog"/>
</xslt2>
                
with

<xmlcatalog id="catalog">
    <entity publicid="http://www.editura.de/docs/test2.xsl";
location="lib/docs/test2.xsl"/>
</xmlcatalog>

and

<taskdef name="xslt2" classname="net.sf.saxon.ant.AntTransform"
classpath="${Saxon9.classpath};${Saxon9-Ant.classpath}"/>

With the <xslt/>-ant-task it works fine, but the above fails with
XTSE0165: java.io.FileNotFoundException.

BTW, the pure Saxon way works also well:

<xslt in="${src_file}" out="${build}/trash.xml"
style="${lib}/tools/test.xsl" force="true">
    <param name="files_prefix" expression="${files_prefix}"/>
    <xmlcatalog refid="catalog"/>
    <classpath location="${Saxon9.classpath}" />
</xslt>
                

Is there any other way to submit a xmlcatalog to saxon9-ant.jar?

Thanks,

Stefan Krause

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>