ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shreyaswini Ramaswamy <srama...@emich.edu>
Subject mtxslt error
Date Fri, 13 Feb 2004 22:15:04 GMT
Hello,

   I am using <mtxslt> to parse an xml file (input.xml) to output.xml 
using converter.xsl. The xsl file is stored in C:\test\files and the 
required .jar files(saxon.jar, xalan2.jar and mtxslt-1.5.jar) are 
placed in C:\test\files\ext directory. I have not included any of the 
jars in my classpath. When I run the code, I get the following error:

Buid falied: C:/test/build.xml: java.lang.ClassNotFoundException: 
org.xmLP.ant.taskdefs.optional.Saxon6Liaison

However, I am NOT getting this error when I include mtxslt-1.5.jar in 
my classpath. 

The code looks like this:

	<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}/converter.xsl" out="output.xml" 
classpath="${saxon6.classpath}">
			<param name="target" expression="saxon"/>
		</mtxslt>
	
 	</target>


What could be wrong? Any help would be appreciated.

Shreya Ramaswamy

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message