Reputation: 1254
I have gotten this Ant script to work for XSLT 1.0 using the standard transform engine. However, I want to use XSLT 2.0 as well and I am running into a brick wall.
I have included the Saxon Jar and defined the factory class. When I run the script, I get a long pause (Maybe 10 seconds, way too much for my XSLT which is about 10 lines long) then I get a BUILD FAILED: Fatal error during transformation
Any help would be much appreciated:
<project name="TranformXml" default="TransformFile">
<target name="TransformFile">
<!-- Transform one file into an HTML file -->
<xslt in="input.xml"
out="student.html"
style="transform.xsl"
processor="trax" force="true" classpath="./lib/saxon/saxon9he.jar">
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
</xslt>
</target>
</project>
I have tried a number of variations of this, including putting the directly in the <xslt>
element, plus toggling the processor
and force
options. Same problem every time.
(Note, I have tested my XSLT and XML in Oxygen and it works well there)
Thanks,
Casey
Upvotes: 2
Views: 626
Reputation: 24617
Sorry guys. I should have been more verbose. I did find out why it was happening though. It was because I was not using resolve-uri() correctly.
Upvotes: 1