]> 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:00:58 +0000 (02:00 +0000)
committerBob Stayton <bobs@sagehill.net>
Fri, 13 Aug 2004 02:00:58 +0000 (02:00 +0000)
xsl/fo/footnote.xsl

index cf7590e151d710e2c08be94b678446e0c322a490..db33bf187ae5a661d8b92384fa8404d47cf80def 100644 (file)
@@ -72,6 +72,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"/>
@@ -88,7 +91,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"/>