]> granicus.if.org Git - docbook-dsssl/commitdiff
Updated the template for footnote paras to use the 'paragraph' template. Closes bug...
authorMauritz Jeanson <mj@johanneberg.com>
Thu, 15 Oct 2009 19:35:52 +0000 (19:35 +0000)
committerMauritz Jeanson <mj@johanneberg.com>
Thu, 15 Oct 2009 19:35:52 +0000 (19:35 +0000)
xsl/html/footnote.xsl

index 4ddfbbfb9d24b4252299ea6982e73f21e4dceafb..08a22fcc1953b084609c55f8c7ef2c73808f4987 100644 (file)
@@ -136,24 +136,26 @@ linkend/id: <xsl:value-of select="@linkend"/>
       <xsl:with-param name="object" select="ancestor::footnote"/>
     </xsl:call-template>
   </xsl:variable>
-  <p>
-    <xsl:call-template name="locale.html.attributes"/>
-    <xsl:if test="@role and $para.propagates.style != 0">
-      <xsl:apply-templates select="." mode="class.attribute">
-        <xsl:with-param name="class" select="@role"/>
-      </xsl:apply-templates>
-    </xsl:if>
-    <sup>
-      <xsl:text>[</xsl:text>
-      <a name="{$name}" href="{$href}">
-        <xsl:apply-templates select="." mode="class.attribute"/>
-        <xsl:apply-templates select="ancestor::footnote"
-                             mode="footnote.number"/>
-      </a>
-      <xsl:text>] </xsl:text>
-    </sup>
-    <xsl:apply-templates/>
-  </p>
+
+  <xsl:call-template name="paragraph">
+    <xsl:with-param name="class">
+      <xsl:if test="@role and $para.propagates.style != 0">
+        <xsl:value-of select="@role"/>
+      </xsl:if>
+    </xsl:with-param>
+    <xsl:with-param name="content">
+      <sup>
+        <xsl:text>[</xsl:text>
+        <a id="{$name}" href="{$href}">
+          <xsl:apply-templates select="." mode="class.attribute"/>
+          <xsl:apply-templates select="ancestor::footnote" mode="footnote.number"/>
+        </a>
+        <xsl:text>] </xsl:text>
+      </sup>
+      <xsl:apply-templates/>
+    </xsl:with-param>
+  </xsl:call-template>
+
 </xsl:template>
 
 <!-- ==================================================================== -->