The styler task makes useful combinations of XSLT transformations easy to specify in an Ant build file. Like the built-in Ant task style, styler can apply a single transformation to a set of XML files. But it can also:
handle multiple transformations, in parallel or pipelined.
enable transformations that split or merge files
process non-XML files, especially HTML (based on JTidy)
apply non-XSLT transformation, especially "regular fragmentations"
use any custom XMLReader or XMLFilter class to handle new file formats and transformation techniques.
The manual page for styler is here. The author is Arnold deVos.
Available for download and use under the LGPL license.
The jarfile for styler, styler.jar
A complete distribution including manual page and source as a zipfile..
Place the styler.jar file in the Ant lib directory.
Ensure that the jar files for Xalan 2 are in the Ant lib directory or otherwise on the classpath.
If you will be processing HTML files, ensure that the JTidy jar file is also in the Ant lib directory or otherwise on the classpath. Version 04aug2000r6 has been tested with styler.
If you will be using regular fragmentations to parse element content, ensure that the fragmentXML jar file is in the Ant lib directory or classpath. Version 0.11 has been tested with styler.
Add the following taskdef is to any build.xml file that uses
styler:
<taskdef classname="au.com.Langdale.styler.StylerTask" name="styler"/>
You can now use the styler task as described in the manual page.
The previous version of styler: