
The section element, however, matches the default template and the proces-
sor moves to its children, title, and
p elements. The processor continues to
match rules with nodes until it has exhausted all the nodes in the original
document.
Creating Nodes in the Resulting Tree
Sometimes it is useful to compute the value or the name of new nodes. The
following template creates an HTML anchor element that points to the
URL. The anchor has two attributes. The first one, TARGET, is specified
directly in the template. However, the processor computes the second
attribute,
HREF, when it applies the rule.
<xsl:template match=”url”>
<A TARGET=”_blank”>
<xsl:attribute ...