W3C home > Mailing lists > Public > public-ws-resource-access-notifications@w3.org > September 2009

WWW/2002/ws/ra/edcopies xmlspec.xsl,1.11,1.12

From: Doug Davis via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 02 Sep 2009 12:51:23 +0000
To: public-ws-resource-access-notifications@w3.org
Message-Id: <E1MipJ5-0004jp-BO@lionel-hutz.w3.org>
Update of /w3ccvs/WWW/2002/ws/ra/edcopies
In directory hutz:/tmp/cvs-serv17858

Modified Files:
	xmlspec.xsl 
Log Message:
fix problem with example labels in appendicies


Index: xmlspec.xsl
===================================================================
RCS file: /w3ccvs/WWW/2002/ws/ra/edcopies/xmlspec.xsl,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- xmlspec.xsl	27 Feb 2009 14:22:34 -0000	1.11
+++ xmlspec.xsl	2 Sep 2009 12:51:21 -0000	1.12
@@ -747,7 +747,14 @@
           </xsl:call-template>
           <xsl:text>Example </xsl:text>
 
-          <xsl:number count="div1" level="multiple" format="1"/>
+          <xsl:choose>
+           <xsl:when test="ancestor-or-self::*[name()='back']">
+             <xsl:number count="div1" level="multiple" format="A"/>
+           </xsl:when>
+           <xsl:otherwise>
+             <xsl:number count="div1" level="multiple" format="1"/>
+           </xsl:otherwise>
+          </xsl:choose>
           <xsl:text>-</xsl:text>
           <xsl:number level="any" from='div1' count="example/head" format="1"/>
 
@@ -2002,7 +2009,14 @@
 
     <a xmlns="http://www.w3.org/1999/xhtml" href="#{$id}">
       <xsl:text>Example </xsl:text>
-      <xsl:number count="div1" level="multiple" format="1"/>
+      <xsl:choose>
+       <xsl:when test="ancestor-or-self::*[name()='back']">
+        <xsl:number count="div1" level="multiple" format="A"/>
+       </xsl:when>
+       <xsl:otherwise>
+        <xsl:number count="div1" level="multiple" format="1"/>
+       </xsl:otherwise>
+      </xsl:choose>
       <xsl:text>-</xsl:text>
       <xsl:number level="any" from='div1' count="example/head" format="1"/>
     </a>
Received on Wednesday, 2 September 2009 12:51:33 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 2 September 2009 12:51:34 GMT