There is a known limitation in the version of Xalan that shipped with Sun's JDK 1.4.1. The following entries from the Xalan website describe the problem and what you can do about it.
For now, I recommend that you either patch your JDK 1.4 or use Ant's
<java>
task instead to launch XSLTProcess
as a
separate process. Simply replace:
<xslt style="${dependencyfinder.home}/etc/DependencyGraphToHTML.xsl" in="mygraph.xml" out="mygraph.html"/>
with the following:
<java classname="org.apache.xalan.xslt.Process"> <arg value="-xsl"/> <arg value="${dependencyfinder.home}/etc/DependencyGraphToHTML.xsl"/> <arg value="-in"/> <arg value="mygraph.xml"/> <arg value="-out"/> <arg value="mygraph.html"/> </java>
If you are running Ant with JDK 1.4, either code snippet should work as is,
except when the bug manifests itself. If, on the other hand, you are running
Ant with JDK 1.3, you will need to have xalan.jar
on your
CLASSPATH
.
Copyright © 2001-2003 Jean Tessier. All rights reserved.