Specifying Patterns for the match Attribute


Matching the root node:
   <xsl:template match="/">
    ...
   </xsl:template>
Matching elements:
   <xsl:template match="student">
    ...
   </xsl:template>
Matching children:
   <xsl:template match="course/student">
    ...
   </xsl:template>

   <xsl:template match="course/*/name">
    ...
   </xsl:template>
Matching Element descendants:
   <xsl:template match="course//name">
    ...
   </xsl:template>