
Hi Jirka, The ANT process started by Oxygen for an ANT transformation scenario is a separate process and does not use the Oxygen available libraries or class loaders. But if you edit the ANT transformation scenario, in the "Options" tab you have a "Libraries" button which you can use to add additional libraries to the started process class path. You can add for example the Saxon 6 libraries which come in the Oxygen installation "lib "directory. In your case I also see you have a classpath reference in the <xslt> task like:
<classpath location="${saxon9.jar}"/>
In the ANT scenario edit dialog, in the "Parameters" tab did you set a value for the "saxon9.jar" parameter name? Regards, Radu Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 8/8/2011 1:21 AM, Jirka Kosek wrote:
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
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user