W3C home > Mailing lists > Public > public-html-commits@w3.org > August 2009

html5/markup/tools toc.xsl,1.4,1.5

From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
Date: Sat, 01 Aug 2009 17:59:12 +0000
To: public-html-commits@w3.org
Message-Id: <E1MXIrQ-00005i-RZ@lionel-hutz.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>&#x2007;</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>&#x2007;</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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 1 August 2009 17:59:23 GMT