[Previous] [Contents] [Next]


Wildcard Matches


A wildcard match will select any element. A wildcard match rule is useful for designating a rule to apply if no other rule applies. (The XSL processor is actually required to assume a default rule when there is no specific rule, as you will learn later in this chapter.)

The syntax for a wildcard selection is

     <xsl:template match="*">

You can also specify the following rule to match the whole of a document if you want to make absolutely sure you capture everything:

<xsl:template match="/ | *">




[Previous] [Contents] [Next]