I'm not compiling the XSLT; I've tried both the <xslt> and <java> tasks, as
shown below.
The XSLT file is copied from ClearCase to a directory by the <copy> task. (I've
verified that the 'correct' version is being copied and that the XSLT is
actually being run from that directory). The checkin was done manually, not by
the Ant script.
The transformation doesn't fail, it's just that it doesn't produce the same
output as if I save the XSLT to a different filename and run the same Ant tasks.
<xslt in="${fullPath}/${dirname}_${fileName}" out="${fullPath}/out.txt"
style="${fullPath}\createGrid.xsl" force="true">
<param name="Schema" expression="${schemaName}"/>
<classpath location="${ant_home}/lib/saxon9.jar"/>
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
</xslt>
and
<java classname="net.sf.saxon.Transform" classpath="${ant_home}/lib/saxon9.jar"
dir="${fullPath}/${allFolderName}" failonerror="true" fork="true"
logError="true">
<jvmarg value="-Xmx1300m"/>
<arg value="-s:${fullPath}/${dirname}_${fileName}"/>
<arg value="-xsl:${fullPath}\createGrid.xsl"/>
<!--
If I run with this line different output is produced:
<arg value="-xsl:${fullPath}\createGrid_duplicate.xsl"/>
-->
<arg value="mappingGridFileName=${dirname}"/>
<arg value="Schema=${schemaName}"/>
</java>
Thanks,
John
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]