July 2001
Intermediate to advanced
592 pages
11h 16m
English
Template rules use the match attribute to select nodes from the input XML document to be processed. However, XSLT provides a mechanism to handle nodes that are not explicitly addressed, using the built-in template rule. The processor implements built-in template rules automatically.
There are built-in template rules for all node types; however, not all built-in templates generate output. The built-in template for the root node and element nodes simply processes the children of each node, using <xsl:apply-templates> as shown in Example 3-18.
<xsl:template match="*|/"> <xsl:apply-templates/> </xsl:template> |
The built-in template for text and attribute ...