- From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
- Date: Sat, 01 Aug 2009 17:59:12 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/markup/tools In directory hutz:/tmp/cvs-serv32749/tools Modified Files: toc.xsl Log Message: mess around with numbers Index: toc.xsl =================================================================== RCS file: /sources/public/html5/markup/tools/toc.xsl,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- toc.xsl 1 Aug 2009 12:23:47 -0000 1.4 +++ toc.xsl 1 Aug 2009 17:59:10 -0000 1.5 @@ -69,17 +69,22 @@ <xsl:value-of select="concat($frag,'-toc')"/> </xsl:attribute> </xsl:if> - <xsl:if test=" - count($subsections) > 9 and 10 > $number - and not(contains(@class,'no-number')) - and not($prefix)"> - <xsl:text> </xsl:text> - </xsl:if> - <a href='{$filename}#{$frag}'> - <xsl:if test="not(contains(@class,'no-number'))"> - <xsl:value-of select='$number'/> - <xsl:text>. </xsl:text> + <span class="toc-section-number"> + <xsl:if test=" + count($subsections) > 9 and 10 > $number + and not(contains(@class,'no-number')) + and not($prefix)"> + <xsl:text> </xsl:text> </xsl:if> + </span> + <a href='{$filename}#{$frag}'> + <span class="toc-section-number"> + <xsl:if test="not(contains(@class,'no-number'))"> + <xsl:value-of select='$number'/> + <xsl:text>.</xsl:text> + </xsl:if> + </span> + <xsl:text> </xsl:text> <xsl:copy-of select='(h:h2|h:h3|h:h4|h:h5|h:h6)/node()'/> </a> <xsl:if test='h:h2[@class = "element-head"]
Received on Saturday, 1 August 2009 17:59:23 UTC