Использование XML Document Object Model
Листинг 2
<xsl:stylesheet xmlns:xsl=”http://www.w3.org/TR/WD-xsl”> <xsl:template match=”/”> <HTML> <BODY> <TABLE> <xsl:for-each select=”CATALOG/CD” order-by=”ARTIST”> <TR> <TD><xsl:value-of select=”ARTIST” /></TD> <TD><xsl:value-of select=”TITLE” /></TD> <TD><xsl:value-of select=”YEAR” /></TD> </TR> </xsl:for-each> </TABLE> </BODY> </HTML> </xsl:template> </xsl:stylesheet>