]> granicus.if.org Git - docbook-dsssl/commitdiff
fixed bug #1472393 fo:table-body missing from HTML informatable to FO.
authorBob Stayton <bobs@sagehill.net>
Mon, 1 May 2006 06:57:04 +0000 (06:57 +0000)
committerBob Stayton <bobs@sagehill.net>
Mon, 1 May 2006 06:57:04 +0000 (06:57 +0000)
xsl/fo/htmltbl.xsl

index bc438af626f0d6fbd5e6aa0dc5b5faeaba046009..243bc6ee3309b81c3fa5d87e4b4e7d06d68340d6 100644 (file)
           <xsl:call-template name="make-html-table-columns">
             <xsl:with-param name="count" select="$numcols"/>
           </xsl:call-template>
-          <xsl:apply-templates mode="htmlTable"/>
+          <xsl:apply-templates select="thead" mode="htmlTable"/>
+          <xsl:apply-templates select="tfoot" mode="htmlTable"/>
+          <xsl:choose>
+            <xsl:when test="tbody">
+              <xsl:apply-templates select="tbody" mode="htmlTable"/>
+            </xsl:when>
+            <xsl:otherwise>
+              <fo:table-body>
+                <xsl:apply-templates select="tr" mode="htmlTable"/>
+              </fo:table-body>
+            </xsl:otherwise>
+          </xsl:choose>
         </fo:table>
       </fo:block>
       <xsl:copy-of select="$footnotes"/>