]> granicus.if.org Git - docbook-dsssl/commitdiff
Add better handling for tables that have footnotes in the titles
authorKeith Fahlgren <abdelazer@users.sourceforge.net>
Wed, 21 May 2008 16:17:44 +0000 (16:17 +0000)
committerKeith Fahlgren <abdelazer@users.sourceforge.net>
Wed, 21 May 2008 16:17:44 +0000 (16:17 +0000)
xsl/html/table.xsl

index dda0b9b50ae8517b76e66c3b1ae68c7f5d1d635f..c1905713d293f02f77285ed942ab37706e45c59c 100644 (file)
       <!-- Otherwise, if there's a title, use that -->
       <xsl:when test="../title">
         <xsl:attribute name="summary">
+          <!-- This screws up on inline markup and footnotes, oh well... -->
           <xsl:value-of select="string(../title)"/>
         </xsl:attribute>
       </xsl:when>
     <xsl:apply-templates select="tfoot"/>
     <xsl:apply-templates select="tbody"/>
 
-    <xsl:if test=".//footnote">
+    <xsl:if test=".//footnote|../title//footnote">
       <tbody class="footnotes">
         <tr>
           <td colspan="{@cols}">
-            <xsl:apply-templates select=".//footnote" mode="table.footnote.mode"/>
+            <xsl:apply-templates select=".//footnote|../title//footnote" mode="table.footnote.mode"/>
           </td>
         </tr>
       </tbody>