]> granicus.if.org Git - docbook-dsssl/commitdiff
Bug #1035656: the label for a listitem in an orderedlist must account for the possibi...
authorNorman Walsh <ndw@nwalsh.com>
Fri, 22 Oct 2004 13:40:39 +0000 (13:40 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Fri, 22 Oct 2004 13:40:39 +0000 (13:40 +0000)
xsl/common/labels.xsl

index 3b0fe27f6b13c456c661afc5e2653acd7f4092df..38c0c4a49047de64b05671879154a0e157ed12bf 100644 (file)
@@ -638,7 +638,11 @@ element label.</para>
     </xsl:choose>
   </xsl:variable>
 
-  <xsl:number count="listitem" format="{$type}"/>
+  <xsl:variable name="item-number">
+    <xsl:call-template name="orderedlist-item-number"/>
+  </xsl:variable>
+
+  <xsl:number value="$item-number" format="{$type}"/>
 </xsl:template>
 
 <xsl:template match="abstract" mode="label.markup">