Forums » Help »
xsl Transform file output failed in ant task?
Added by Anonymous about 19 years ago
Legacy ID: #3368727
Legacy Poster: changhao (changhao)
==ant build.xml==== <project name="MyProject"
default="test" basedir="."> <property
name="DriverLib" value = "../../driver/lib"/>
<target name="test"> <java
classname="net.sf.saxon.Transform"
fork="yes"> <arg line="books.xmi books.xsl
-o=books.html "/> <classpath> <fileset
dir="${DriverLib}/saxon"> <include
name=".jar"/> </fileset> <fileset
dir="${DriverLib}/apache"> <include
name=".jar"/> </fileset>
</classpath> </java> </target>
</project> ================ but it succeed by cmd line: java
net.sf.saxon.Transform data\books.xml styles\books.xsl >books.html
Please register to reply
Legacy ID: #3369147
Legacy Poster: Michael Kay (mhkay)
Give us some clues: how did it fail? (Did you really say books.xmi?) Michael
Kay
Legacy ID: #3370052
Legacy Poster: changhao (changhao)
I am so glad to get your reply,i am studing your book "xslt programmer's
reference". ============================== Did you really say books.xmi? This
is ok i change the name to books.xmi because i want to translate uml model.
============================== The translation is ok, but it just print the result in
the console without an output file. because it is execued by ant so there is a [java]
prex for each line. ==============================
Legacy ID: #3370150
Legacy Poster: Michael Kay (mhkay)
Without knowing the details of the error message, I can't give you any help to
diagnose it. Sorry. Michael Kay
Please register to reply