
Extensible Stylesheet Language (XSL) • 259
The final XML document and the corresponding XSLT stylesheet are shown in Figure 6.21.
XML document (two.xml)
<?xml version = "1.0" ?>
<?xml:stylesheet type = "text/xsl" href = "two.xsl"?>
<CATALOG>
<BOOK>
<TITLE>Computer Networks</TITLE>
<AUTHORS>
<AUTHOR>Andrew Tanenbaum</AUTHOR>
</AUTHORS>
<PUBYEAR>2003</PUBYEAR>
<PRICE>250</PRICE>
</BOOK>
<BOOK>
<TITLE>Web Technologies</TITLE>
<AUTHORS>
<AUTHOR>Achyut Godbole</AUTHOR>
<AUTHOR>Atul Kahate</AUTHOR>
</AUTHORS>
<PUBYEAR>2002</PUBYEAR>
<PRICE>250</PRICE>
</BOOK>
</CATALOG>
XSLT stylesheet (two.xsl)
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> ...