[oXygen-user] Problems in Ant transform, xslt task and manually specified TransformerFactory
Jirka Kosek
Sun Aug 7 17:21:09 CDT 2011
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
--
------------------------------------------------------------------
Jirka Kosek e-mail: 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
------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 259 bytes
Desc: OpenPGP digital signature
Url : http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20110808/bdf88a87/attachment.bin
More information about the oXygen-user
mailing list