Example 7-1: Single root-template stylesheet to tranform Emp.xml to HTML

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:template match="/">
    <html>
      <body>
        <xsl:for-each select="ROWSET">
          <table border="1" cellspacing="0">
            <xsl:for-each select="ROW">
              <tr>
                <td><xsl:value-of select="EMPNO"/></td>
                <td><xsl:value-of select="ENAME"/></td>
              </tr>
            </xsl:for-each>
          </table>
        </xsl:for-each>
      </body>
    </html>
  </xsl:template>
</xsl:stylesheet>