Hi,
I am a newbie trying to use ant to transform a xml-file to html with xalan.
I am working with win 98 jdk 1.3, ant 1.4 and xalan 2
When I use the following test.bat file xalan works:
@echo off
set classpath=D:\tools\xalan\bin\xerces.jar;D:\tools\xalan\bin\xalan.jar
java org.apache.xalan.xslt.Process -in test.xml -xsl pre2html.xsl -out
test.html
Now I tried it with the following build.xml:
<project name="MyProject" default="xsl" basedir=".">
<!-- set global properties for this build -->
<property name="src" value="."/>
<property name="build" value="build"/>
<property name="dist" value="dist"/>
<target name="xsl">
<java classname="org.apache.xalan.xslt.Process" >
<arg line="-in test.xml -xsl pred2html.xsl -out test2.html"/>
<classpath>
<pathelement location="D:\tools\xalan\bin\xerces.jar"/>
<pathelement location="D:\tools\xalan\bin\xalan.jar"/>
</classpath>
</java>
</target>
</project>
I get the following error:
\ant-test> ant
Buildfile: build.xml
xsl:
[java]
[java] <Location of error unknown> XSLT Error <java.lang.LinkageError>:
loader constraints violated when linking org/xml/sax/InputSource class
-----------------------
The same error appeared as I used path instead of location in the
classpath-tag.
What have I done wrong?
Thank you very much
Stefan
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>