XSLT articles for XML data using JDOM
Use JDOM to easily process XML data in Java. The way to process XML data generally includes three types: directly read and operate XML data, convert XML into a web page using XSLT, using XSL-FO to convert XML into binary (PDF) format. The first way of transformation has been introduced in the previous article (http://www.9cbs.net/develop/read_article.asp?id=20720), here is the second way to transform XML: Using XSLT Transform XML into a web page.
To translate the XML text, there is a suffix name of the .xsl's XSLT file. The XML files and XSLT files used in the example are as follows:
WatchList.xml
XML Version = "1.0"?>
quote>
quote>
quote>
quote-list>
Watchlist.xsl
XML Version = "1.0" encoding = "UTF-8"?>
XMLns: xsl = "http://www.w3.org/1999/xsl/transform" version = "1.0"> DOCTYPE-PUBLIC = "- // w3c // DTD XHTML 1.0 Transitional // EN" />
Price quotes as of
on
i> p>