Initial subversion import.
The following lines are to recognize contributions made before the switch
to Subversion.
Patch by: bruce, jgw, scottb, mmendez, ecc, hcc, knorton, haeberling, samgross, mat.gessel
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@1 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/build-tools/doctool/src/topics-toc.xslt b/build-tools/doctool/src/topics-toc.xslt
new file mode 100644
index 0000000..70d285e
--- /dev/null
+++ b/build-tools/doctool/src/topics-toc.xslt
@@ -0,0 +1,31 @@
+<?xml version="1.0"?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:output method="html"/>
+ <xsl:param name="title"/>
+ <xsl:template match="/">
+ <html>
+ <head>
+ <link rel="stylesheet" href="help.css" type="text/css"/>
+ </head>
+ <body style="margin: 0.5em">
+ <h1>
+ <xsl:value-of select="$title"/>
+ </h1>
+ <xsl:apply-templates select="/topics/topic">
+ <xsl:sort select="order" data-type="number" order="descending"/>
+ </xsl:apply-templates>
+ </body>
+ </html>
+ </xsl:template>
+
+ <xsl:template match="topic">
+ <div style="margin-left: 2%">
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of select="id"/>.html</xsl:attribute>
+ <xsl:attribute name="class">tocLink</xsl:attribute>
+ <xsl:value-of select="title"/>
+ </xsl:element>
+ <xsl:apply-templates select="topic"/>
+ </div>
+ </xsl:template>
+</xsl:stylesheet>