- From: Doug Davis via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 09 Dec 2010 16:56:36 +0000
- To: public-ws-resource-access-notifications@w3.org
Update of /w3ccvs/WWW/2002/ws/ra/edcopies
In directory hutz:/tmp/cvs-serv29129
Modified Files:
xmlspec.xsl
Log Message:
add the ability the have the toc stop at a certain div
Index: xmlspec.xsl
===================================================================
RCS file: /w3ccvs/WWW/2002/ws/ra/edcopies/xmlspec.xsl,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- xmlspec.xsl 28 Nov 2010 15:54:19 -0000 1.18
+++ xmlspec.xsl 9 Dec 2010 16:56:34 -0000 1.19
@@ -2784,7 +2784,7 @@
</a>
<br xmlns="http://www.w3.org/1999/xhtml"/>
<xsl:text> </xsl:text>
- <xsl:if test="$toc.level > 1">
+ <xsl:if test="$toc.level > 1 and not(@tocStop)">
<xsl:apply-templates select="div2" mode="toc"/>
</xsl:if>
</xsl:template>
@@ -2803,7 +2803,7 @@
</a>
<br xmlns="http://www.w3.org/1999/xhtml"/>
<xsl:text> </xsl:text>
- <xsl:if test="$toc.level > 2">
+ <xsl:if test="$toc.level > 2 and not(@tocStop)">
<xsl:apply-templates select="div3" mode="toc"/>
</xsl:if>
</xsl:template>
@@ -2822,7 +2822,7 @@
</a>
<br xmlns="http://www.w3.org/1999/xhtml"/>
<xsl:text> </xsl:text>
- <xsl:if test="$toc.level > 3">
+ <xsl:if test="$toc.level > 3 and not(@tocStop)">
<xsl:apply-templates select="div4" mode="toc"/>
</xsl:if>
</xsl:template>
@@ -2841,7 +2841,7 @@
</a>
<br xmlns="http://www.w3.org/1999/xhtml"/>
<xsl:text> </xsl:text>
- <xsl:if test="$toc.level > 4">
+ <xsl:if test="$toc.level > 4 and not(@tocStop)">
<xsl:apply-templates select="div5" mode="toc"/>
</xsl:if>
</xsl:template>
Received on Thursday, 9 December 2010 16:56:38 UTC