]> granicus.if.org Git - docbook-dsssl/commitdiff
In the table.block template, added a check for the dbfo_keep-together PI, so that
authorMauritz Jeanson <mj@johanneberg.com>
Thu, 13 Sep 2007 17:09:49 +0000 (17:09 +0000)
committerMauritz Jeanson <mj@johanneberg.com>
Thu, 13 Sep 2007 17:09:49 +0000 (17:09 +0000)
a table may break (depending on the PI value) at a page break. This was needed
since the outer fo:block that surrounds fo:table has keep-together.within-column="always"
by default, which prevents the table from breaking. Closes bug #1740964 (Titled
table does not respect dbfo PI).

xsl/fo/table.xsl

index a741c072edd039865055ce150ddd4edb79adc1bc..247fd3f72aedcefaaf873c6e7a2591da02ba5ff1 100644 (file)
     </xsl:choose>
   </xsl:variable>
 
+  <xsl:variable name="keep.together">
+    <xsl:call-template name="pi.dbfo_keep-together"/>
+  </xsl:variable>
+
   <xsl:choose>
     <xsl:when test="self::table">
       <fo:block id="{$id}"
                 xsl:use-attribute-sets="table.properties">
+       <xsl:if test="$keep.together != ''">
+         <xsl:attribute name="keep-together.within-column">
+           <xsl:value-of select="$keep.together"/>
+         </xsl:attribute>
+       </xsl:if>
         <xsl:if test="$placement = 'before'">
           <xsl:call-template name="formal.object.heading">
             <xsl:with-param name="placement" select="$placement"/>