Working with the xsl:template
xsl:template is perhaps the most important top-level element in an xsl stylesheet. While all the other elements add to a stylesheet, xsl:template is its heart and soul.
Note
The remaining sections in this chapter all use the XML Document defined in Listing 5.2 unless otherwise noted.
Figure 5.2 shows a graphical representation of Listing 5.2. Examining Figure 5.2, we see that its root contains two elements—the REListing element and the xsl-stylesheet processing instruction. Don't forget that the root of the document is not the same as the root element. The document root contains the stylesheet element and the root element. The root element, in our case the REListing element, contains all the document's children. ...
Get XML Development with Java™ 2 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.