Matching Elements

You can match elements simply by giving their names, as you’ve also seen. The following template matches <PLANETS> elements:

<xsl:template match="PLANETS"> 
  <HTML> 
    <xsl:apply-templates/> 
  </HTML> 
</xsl:template> 

Get Inside XSLT 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.