Transforming XML documents using XSLT and Xalan Java

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.




_______________________________________________

FREE Subscription

Subscribe to our mailing list and receive new articles
through email. Keep yourself updated with latest
developments in the industry.

Name:
Email:

Note : We never rent, trade, or sell my email lists to
anyone. We assure that your privacy is respected
and protected.

_______________________________________




 

 

FREE Subscription

Stay Current With the Latest Technology Developments Realted to XML. Signup for Our Newsletter and Receive New Articles Through Email.

Name:

Email:

Note : We never rent, trade, or sell our email lists to anyone. We assure that your privacy is respected and protected.

 

 

Add to My Yahoo!

Visit XML Training Material Guide Homepage

 

 

Copyright - © 2004 - 2017 - All Rights Reserved.