Example 7-3: Simple stylesheet to produce HTML using multiple templates

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  <xsl:output indent="no"/>
  <xsl:template match="/">
    <html>
      <body><xsl:apply-templates/></body>
    </html>
  </xsl:template>
  <xsl:template match="ROWSET">
    <table border="1" cellspacing="0"><xsl:apply-templates/></table>
  </xsl:template>
  <xsl:template match="ROW">
    <tr><xsl:apply-templates/></tr>
  </xsl:template>
  <xsl:template match="EMPNO">
    <td><xsl:apply-templates/></td>
  </xsl:template>
  <xsl:template match="ENAME">
    <td><xsl:apply-templates/></td>
  </xsl:template>
</xsl:stylesheet>