Xalan Java
can be used to transform the XML documents into other forms by using
an XSL file in the command line. It is an XSLT processor and hence you
can do this. It implements, XSLT, XPath, and JAXP. You can use it in
a servlet or even an applet.
_______________________________________________
There
are many sites that give you the link to download the Xalan XSLT processor.
You can download it and install in your system and you have to set the
classpath to point to the jar files like serializer.jar, xml-apis.jar,
xalan.jar, and xerceslmpl.jar.
While using
the command line option of running the Xalan XSLT processor, you have
to call java along with the process class. Optional tags like -IN, -XSL,
-OUT are used it the command line. There are also other optional tags
that you can use. You can refer to the documentation on using them.
As the name implies, the -IN is used for XML input file, the -XSL for
the XSL file and the -OUT for the output file.
Most of
the leading IDEs in the market for working with XML have the option
to select the processor to use for transformation. If you are using
an IDE, you can set it to Xalan and do the transformation in the IDE
itself.