blob: 585a96be857e4e35956103e0e65cd6806be5162c [file] [log] [blame]
The XSLT Compiler (XSLTC) is a Java-based tool for compiling XSL
stylesheets into extremely lightweight and portable Java byte code.
This Compiled JAXP Demo shows you one way to compile and use compiled
translets with JAXP.
Use the two classes provided, Compile and Transform, just like the
org.apache.xalan.xsltc.cmdline Compile and Transform classes.
Compiles an XSL stylesheet into a translet, which is written to
a '.class' file.
Constructs a TransformerFactory and asks it to load a translet
in the form of a Transformer. The translet performs the
transformation on behalf of the Transformer.transform() method.
java Compile <stylesheet.xsl>
java Transform <xmlfile.xml> <stylesheet>