Jirka Kosek
2011-08-07 22:21:09 UTC
Hi,
I have Ant build file which works perfectly outside oXygen. For various
reasons both Saxon9 and Saxon6 has to be called during the build
process, so xslt task always specifies which transformer to use using
factory:
<xslt ...>
<factory name="net.sf.saxon.TransformerFactoryImpl">
<attribute name="http://saxon.sf.net/feature/xinclude-aware"
value="true"/>
</factory>
<classpath location="${saxon9.jar}"/>
</xslt>
or
<xslt ...>
<factory name="com.icl.saxon.TransformerFactoryImpl"/>
<classpath>
<pathelement location="${saxon.jar}"/>
</classpath>
</xslt>
Problem is that in oXygen (12.2, Windows/Linux) such Ant task produces
the following error message:
BUILD FAILED
.....\build.xml:126: java.lang.ClassNotFoundException:
com.icl.saxon.TransformerFactoryImpl
I suppose that's because oXygen uses special classloader. Do you have
any idea how to overcome this issue? I need to run same Ant script from
oXygen and standalone as well.
Thanks,
Jirka
I have Ant build file which works perfectly outside oXygen. For various
reasons both Saxon9 and Saxon6 has to be called during the build
process, so xslt task always specifies which transformer to use using
factory:
<xslt ...>
<factory name="net.sf.saxon.TransformerFactoryImpl">
<attribute name="http://saxon.sf.net/feature/xinclude-aware"
value="true"/>
</factory>
<classpath location="${saxon9.jar}"/>
</xslt>
or
<xslt ...>
<factory name="com.icl.saxon.TransformerFactoryImpl"/>
<classpath>
<pathelement location="${saxon.jar}"/>
</classpath>
</xslt>
Problem is that in oXygen (12.2, Windows/Linux) such Ant task produces
the following error message:
BUILD FAILED
.....\build.xml:126: java.lang.ClassNotFoundException:
com.icl.saxon.TransformerFactoryImpl
I suppose that's because oXygen uses special classloader. Do you have
any idea how to overcome this issue? I need to run same Ant script from
oXygen and standalone as well.
Thanks,
Jirka
--
------------------------------------------------------------------
Jirka Kosek e-mail: ***@kosek.cz http://xmlguru.cz
------------------------------------------------------------------
Professional XML consulting and training services
DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
------------------------------------------------------------------
------------------------------------------------------------------
Jirka Kosek e-mail: ***@kosek.cz http://xmlguru.cz
------------------------------------------------------------------
Professional XML consulting and training services
DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
------------------------------------------------------------------