]> granicus.if.org Git - docbook-dsssl/commitdiff
Number footnotes in refentrys individually; add priority to match on first para of...
authorNorman Walsh <ndw@nwalsh.com>
Tue, 1 Jan 2002 14:36:05 +0000 (14:36 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Tue, 1 Jan 2002 14:36:05 +0000 (14:36 +0000)
xsl/html/footnote.xsl

index 64b9b3d1b1c625d3f6e1a57136de3c8f5b822a6c..c22d4b53cf9a9b5f83627f541e25280f0a8d6ac4 100644 (file)
@@ -66,6 +66,9 @@
     <xsl:when test="ancestor::table or ancestor::informaltable">
       <xsl:number level="any" from="table|informaltable" format="a"/>
     </xsl:when>
+    <xsl:when test="ancestor::refentry">
+      <xsl:number level="any" from="refentry" format="1"/>
+    </xsl:when>
     <xsl:otherwise>
       <xsl:number level="any" format="1"/>
     </xsl:otherwise>
@@ -74,7 +77,7 @@
 
 <!-- ==================================================================== -->
 
-<xsl:template match="footnote/para[1]|footnote/simpara[1]">
+<xsl:template match="footnote/para[1]|footnote/simpara[1]" priority="2">
   <!-- this only works if the first thing in a footnote is a para, -->
   <!-- which is ok, because it usually is. -->
   <xsl:variable name="name">