Sign In/My Account | View Cart  
advertisement

Article:
 Running Multiple XSLT Engines with Ant
Subject: xslt in ant
Date: 2004-02-16 12:07:56
From: shreya Ramaswamy
Response to: xslt in ant

Anthony Coates,


Thanks.I did this and it works. However, I have a strange problem.When I remove mtxslt-1.5.jar from my classpath and specify the path explicitly in my code, it does not work for some reason. I am getting the same error:


BUILD FAILED


file:C:/Project/project/build.xml:142: java.lang.ClassNotFoundException: org.xmLP.ant.taskdefs.optional.Saxon6Liaison



I have my jar files(saxon,mtxslt,xalan) in C:\test\files\ext directory; input.xml and the xsl file in C:\test\files directory.


Here's my code:


<property name="files.dir" value="files"/>
<property name="files.ext" value="${files.dir}/ext"/>
<taskdef name="mtxslt"
classname="org.xmLP.ant.taskdefs.xslt.XSLTProcess">
<classpath>


<fileset dir="${files.dir}/ext">
<include name="mtxslt-1.5.jar"/>
</fileset>


</classpath>
</taskdef>


<property name="saxon6"
value="org.xmLP.ant.taskdefs.optional.Saxon6Liaison"/>
<property name="saxon6.classpath" value="${files.ext}/saxon.jar"/>


<target name="saxon6">
<mtxslt processor="${saxon6}" in="${files.dir}/input.xml"
style="${files.dir}/dbconv.xsl" out="output.xml"
classpath="${saxon6.classpath}">
<param name="target" expression="saxon"/>
</mtxslt>

</target>


Any help would be appreciated.Thanks for your time.


Shreya


No Previous Message Previous Message Move up to Parent Message Up Next Message No Next Message


Sponsored By: