XSL stylesheet 2<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform' > |
| <xsl:template match="/"> |
| <TABLE> |
| <xsl:for-each select="//chapter"> |
| <TR><TD><xsl:apply-templates select="."/></TD></TR> |
| </xsl:for-each> |
| </TABLE> |
| </xsl:template> |
| <xsl:template match="chapter"> |
| <xsl:value-of select="."/> |
| <xsl:text> (last = </xsl:text> |
| <xsl:value-of select="last()"/> |
| <xsl:text> )</xsl:text> |
| </xsl:template> |
| </xsl:stylesheet> |