]> granicus.if.org Git - docbook-dsssl/commitdiff
RFE 782817, added support for @label in footnote.
authorBob Stayton <bobs@sagehill.net>
Fri, 13 Aug 2004 02:06:27 +0000 (02:06 +0000)
committerBob Stayton <bobs@sagehill.net>
Fri, 13 Aug 2004 02:06:27 +0000 (02:06 +0000)
xsl/html/footnote.xsl

index 76fc54c429e6dcb60f1e348f39749f14d7961a40..45bede4b2d4220d96665dd53793a7380036e6216 100644 (file)
@@ -65,6 +65,9 @@
 
 <xsl:template match="footnote" mode="footnote.number">
   <xsl:choose>
+    <xsl:when test="string-length(@label) != 0">
+      <xsl:value-of select="@label"/>
+    </xsl:when>
     <xsl:when test="ancestor::tgroup">
       <xsl:variable name="tfnum">
         <xsl:number level="any" from="table|informaltable" format="1"/>
@@ -81,7 +84,7 @@
       </xsl:choose>
     </xsl:when>
     <xsl:otherwise>
-      <xsl:variable name="pfoot" select="preceding::footnote"/>
+      <xsl:variable name="pfoot" select="preceding::footnote[not(@label)]"/>
       <xsl:variable name="ptfoot" select="preceding::tgroup//footnote"/>
       <xsl:variable name="fnum" select="count($pfoot) - count($ptfoot) + 1"/>