Using Xalan Java for processing XML with XSLT

Xalan Java is an XSLT processor. With this processor you can transform the XML document in to other formats as required by your application. You can use this processor from within your program or in command line. It can also be integrated in other programs. It implements XSLT version 1.0, XPath version 1.0, and JAXP 1.3.

_______________________________________________


_______________________________________________

To work with the Xalan Java XSLT processor you have to download it and set the classpath to the jar files xalan.jar, xml-apis.jar, serializer.jar, and xercesImpl.jar.

Now to use the processor you have to call the Process class in the command line while calling java. A typical command line command would be something like, java org.apache.xalan.xslt.Process -IN ur_xml_file.xml -XSL ur_xsl_file.xsl -OUT ur_output.out

In the command line you can find the flags -IN is used to specify the XML file that you want to transform and the -XSL is used to specify the XSL file that is used for the transformation.

Suppose you want only the text values of the elements to be included in the output you can use the flag -TEXT. To write HTML, you can use the flag -HTML. Check the documentation for the other flags that might be applicable to your application.

Linked by Eugenia Loli-Queru on Thu 22nd Sep 2005 22:35 UTC (New Mobile Computing)
This article gives you a good understanding of the fundamental principles of Ajax and a nuts-and-bolts knowledge of the client and server side components that participate in an Ajax interaction. These are the building blocks of a Java-based Ajax Web application.

Linked by Thom Holwerda on Thu 6th Oct 2005 11:05 UTC (New Mobile Computing)
The Servlet-Based Content Creation Framework is an easy-used and easily-understood compact, content creation framework utilizing hamlets; a servlet extension that reads XHTML and uses the simple API for XML. Read this article on introducing Hamlets and learn how they can be used to separate Java and HTML in the same source file.



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.

_______________________________________

Recommended XML Books

cover
cover
cover
cover
cover
cover







 

 

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!


New XML Books Titles - Best Seller's @ Amazon.com

Visit XML Training Material Guide Homepage

Technology helps engage students - how do classroom instruction and social dynamics change when the classroom is completely dependant on modern technology?

Dallas Web Design- local Dallas web design firm offers site design and backend system development