![]() ![]() | ![]() |
make a dynamic version of the status-annotated TOC
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:h="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml" version='1.0'> <xsl:output method="xml"/> <xsl:template match="h:html"> <xsl:processing-instruction name="xml-stylesheet">href="tocmix.xsl" type="text/xml"</xsl:processing-instruction> <xsl:text> </xsl:text> <html> <xsl:apply-templates /> </html> </xsl:template> <xsl:template match="h:head"> <head> <xsl:text> </xsl:text> <title>oops</title> <xsl:text> </xsl:text> </head> </xsl:template> <xsl:template match="h:body"> <body> <xsl:text> </xsl:text> <xsl:for-each select="h:ol[@class='toc']"> <xsl:copy> <xsl:apply-templates select="@* | node()"/> </xsl:copy> </xsl:for-each> <xsl:text> </xsl:text> </body> </xsl:template> <xsl:template match="node() | @*"> <xsl:copy> <xsl:apply-templates select="@* | node()"/> </xsl:copy> </xsl:template> </xsl:stylesheet>