]> granicus.if.org Git - docbook-dsssl/commitdiff
Fix bug 2825842 where table footnotes not appearing in HTML-coded table.
authorBob Stayton <bobs@sagehill.net>
Wed, 2 Dec 2009 07:40:21 +0000 (07:40 +0000)
committerBob Stayton <bobs@sagehill.net>
Wed, 2 Dec 2009 07:40:21 +0000 (07:40 +0000)
xsl/html/formal.xsl

index c2bf5ae7cb76575ba5ca45961041611c8f4d5291..54a3ca71b2f8b62e0d4848056b593fcbcdf71c95 100644 (file)
   <xsl:param name="class" select="local-name(.)"/>
 
   <xsl:choose>
-    <xsl:when test="title">
+    <xsl:when test="title or info/title">
       <xsl:call-template name="formal.object">
         <xsl:with-param name="placement" select="$placement"/>
         <xsl:with-param name="class" select="$class"/>
   </xsl:if>
 
   <xsl:apply-templates mode="htmlTable"/>
+
+  <xsl:if test=".//footnote|../title//footnote">
+    <tbody class="footnotes">
+      <tr>
+        <td colspan="50">
+          <xsl:apply-templates select=".//footnote|../title//footnote" mode="table.footnote.mode"/>
+        </td>
+      </tr>
+    </tbody>
+  </xsl:if>
 </xsl:template>
 
 <xsl:template match="example">