Friday, April 28, 2006

XSL Transform with Ant

Ant provides a taskthat will perform an XSL transformation on multiple XML files. Below is an example of using this task:

<target name="TransformAll">
<xslt basedir="${basedir}/xml"

destdir=
"${basedir}/html"
includes=
"*.xml"
style="${basedir}/xslt/test.xsl"
/>


The basedir parameter specificies the directory of the files to transform. The includes parameter can be used to filter out specific files in the basedir to transform. The destdir specifies where the transformed files will be stored. The style parameter specifies the XSL file to be used to transform the input files.

This information was obtained from Java, Eclipse, Ant, XML, JMX and other acronyms which provides a lot more useful information than my blog :(.

1 Comments:

Blogger Doug said...

But what is the XSLT engine used by ANT? Can we configure that or it comes with Ant?
Youknow, this could mean a lot if we can use Ant task to transform retarded UFO xml files.

9:49 AM  

Post a Comment

Subscribe to Post Comments [Atom]

<< Home