You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Shreyaswini Ramaswamy <sr...@emich.edu> on 2004/02/13 23:15:04 UTC

mtxslt error

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


Re: mtxslt error

Posted by "Anthony B. Coates" <ab...@idmm.co.uk>.
Nothing at all is wrong, it is all as it should be.  You need 'mtxslt' in 
your class path.  Then 'mtxslt' uses the Saxon6 classpath that you define 
to load it, it doesn't need Saxon6 to already be on the classpath.  So it 
is all working as it should.

	Cheers,
		Tony.

On Fri, 13 Feb 2004 17:15:04 -0500 (EST), Shreyaswini Ramaswamy 
<sr...@emich.edu> wrote:

> 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.

-- 
Anthony B. Coates, Director
Information Design, Messaging and Management
mailto:abcoates@idmm.co.uk
Mobile/Cell: +44 (79) 0543 9026
--
MDDL Editor (Market Data Definition Language)
http://www.mddl.org/
FpML AWG Member (Financial Products Markup Language)
http://www.fpml.org/

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