← Prev in month ← Prev in thread
Next in thread → Next in month →

Bodyless fo tables

From
Elliotte Harold <>
Date
2006-04-07T11:55:39+00:00
ID
Thread
Bodyless fo tables
I notice that when processing HTML tables into XSL-FO tables, the 
Docbook XSL stylesheets at least sometimes omit the necessary 
fo:table-body element. Is this a known bug?

I suspect this only happens for captionless tables because in 
htmltbl.xsl the following appears in the case where the table has a caption:

           <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>


However there's no equivalent for the case where the table has no caption.

-- 
Elliotte Rusty Harold  
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim
← Prev in month ← Prev in thread
Next in thread → Next in month →