gwt.team.scottb | ab0aa68 | 2006-12-06 23:14:19 +0000 | [diff] [blame] | 1 | <?xml version="1.0"?> |
| 2 | <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
| 3 | <xsl:output method="html"/> |
| 4 | <xsl:param name="title"/> |
| 5 | <xsl:template match="/"> |
| 6 | <html> |
| 7 | <head> |
| 8 | <link rel="stylesheet" href="help.css" type="text/css"/> |
| 9 | </head> |
| 10 | <body style="margin: 0.5em"> |
| 11 | <h1> |
| 12 | <xsl:value-of select="$title"/> |
| 13 | </h1> |
| 14 | <xsl:apply-templates select="/topics/topic"> |
| 15 | <xsl:sort select="order" data-type="number" order="descending"/> |
| 16 | </xsl:apply-templates> |
| 17 | </body> |
| 18 | </html> |
| 19 | </xsl:template> |
| 20 | |
| 21 | <xsl:template match="topic"> |
| 22 | <div style="margin-left: 2%"> |
| 23 | <xsl:element name="a"> |
| 24 | <xsl:attribute name="href"><xsl:value-of select="id"/>.html</xsl:attribute> |
| 25 | <xsl:attribute name="class">tocLink</xsl:attribute> |
| 26 | <xsl:value-of select="title"/> |
| 27 | </xsl:element> |
| 28 | <xsl:apply-templates select="topic"/> |
| 29 | </div> |
| 30 | </xsl:template> |
| 31 | </xsl:stylesheet> |