1 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
\r
2 xmlns:xalanredirect="org.apache.xalan.xslt.extensions.Redirect"
\r
3 exclude-result-prefixes=""
\r
4 extension-element-prefixes="xalanredirect"
\r
5 xmlns:h="http://www.w3.org/1999/xhtml"
\r
8 <xsl:output method="html"/>
\r
10 <xsl:template match="/">
\r
11 <xsl:apply-templates select="h:html/h:body/*"/>
\r
14 <xsl:template match="h:div[@class='toc']">
\r
15 <xalanredirect:write file="categories.html">
\r
16 <xsl:apply-templates/>
\r
17 </xalanredirect:write>
\r
20 <xsl:template match="h:div[@class='toc']//text()[string(.)='Table of Contents']">
\r
21 <xsl:value-of select="/h:html/h:head/h:title/text()"/>
\r
24 <xsl:template match="@*|node()">
\r
26 <xsl:apply-templates select="@*|node()"/>
\r
30 <xsl:template match="h:a[string()='']">
\r
32 <xsl:apply-templates select="@*|node()"/>
\r
33 <xsl:text> </xsl:text>
\r