|
Java™ by example!
|
|
|
How do I convert an XML to an HTML using XSLT with Xalan?
Xalan is an Apache implementation of the W3C recommendations for XSL transformations, XSLT. XSLT allows you to transform xml documents in an HTML, another XML or whatever format you desire.
Download Xalan at http://xml.apache.org/xalan-j/index.html. You can apply an XSL to an XML document with command line. Make sure xalan.xml is in your classpath before trying out this example. It will create an HTML file (check it out!) from an XML.
customers.xml (!!remove the space between ? and xml):
customers.dtd:
customers.xsl (!!remove the space between ? and xml):
Further Information
Author of answer: Joris Van den Bogaert
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|