Modified the tgroup template so that, for tables with multiple tgroups,
authorMauritz Jeanson <mj@johanneberg.com>
Sat, 18 Aug 2007 16:27:46 +0000 (16:27 +0000)
committerMauritz Jeanson <mj@johanneberg.com>
Sat, 18 Aug 2007 16:27:46 +0000 (16:27 +0000)
a width attribute is output on all corresponding fo:tables. Previously,
there was a test prohibiting this (and a comment saying that outputting more
than one width attribute will cause an error). But this seems to be no longer
relevant; it is not a problem with FOP 0.93 or XEP 4.10. Closes bug #1760559.

xsl/fo/table.xsl

index 658f3a632a17a76f8ca650eb376e2f245b2e3f67..a741c072edd039865055ce150ddd4edb79adc1bc 100644 (file)
                 $passivetex.extensions != 0">
     <xsl:attribute name="table-layout">fixed</xsl:attribute>
   </xsl:if>
-
-  <xsl:if test="count(preceding-sibling::tgroup) = 0">
-    <!-- If this is the first tgroup, output the width attribute for the -->
-    <!-- surrounding fo:table. (If this isn't the first tgroup, trying   -->
-    <!-- to output the attribute will cause an error.)                   -->
     <xsl:attribute name="width">
       <xsl:value-of select="$table.width"/>
     </xsl:attribute>
-  </xsl:if>
-
   <xsl:choose>
     <xsl:when test="$use.extensions != 0
                     and $tablecolumns.extension != 0">