WWW/2002/ws/ra/edcopies xmlspec.xsl,1.18,1.19

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>&#10;</xsl:text>
-    <xsl:if test="$toc.level &gt; 1">
+    <xsl:if test="$toc.level &gt; 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>&#10;</xsl:text>
-    <xsl:if test="$toc.level &gt; 2">
+    <xsl:if test="$toc.level &gt; 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>&#10;</xsl:text>
-    <xsl:if test="$toc.level &gt; 3">
+    <xsl:if test="$toc.level &gt; 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>&#10;</xsl:text>
-    <xsl:if test="$toc.level &gt; 4">
+    <xsl:if test="$toc.level &gt; 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