#1247 Missing check for keep.together in informaltable

closed-fixed
XSL (1066)
5
2014-01-20
2012-08-09
Henrik Ryom
No

In the template 'table.block' in fo/table.xsl it is only in table the possible PSI 'keep-together' is applied. It would be nice to have this check also for informaltables, like this:

<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"/>
</xsl:call-template>
</xsl:if>
<xsl:copy-of select="$table.layout"/>
<xsl:call-template name="table.footnote.block"/>
<xsl:if test="$placement != 'before'">
<xsl:call-template name="formal.object.heading">
<xsl:with-param name="placement" select="$placement"/>
</xsl:call-template>
</xsl:if>
</fo:block>
</xsl:when>
<xsl:otherwise>
<fo:block id="{$id}"
xsl:use-attribute-sets="informaltable.properties">
<xsl:if test="$keep.together != ''">
<xsl:attribute name="keep-together.within-column">
<xsl:value-of select="$keep.together"/>
</xsl:attribute>
</xsl:if>
<xsl:copy-of select="$table.layout"/>
<xsl:call-template name="table.footnote.block"/>
</fo:block>
</xsl:otherwise>
</xsl:choose>

Thanks.

Discussion

  • Seems reasonable. Will fix this.

     
    • assigned_to: nobody --> mzjn
     
    • status: open --> pending-fixed
     
  • A fix for this issue has been added to the current codebase.
    Please test the fix with the latest snapshot from:

    http://docbook.sourceforge.net/snapshots/

     
  • Robert Stayton
    Robert Stayton
    2014-01-20

    • Status: pending-fixed --> closed-fixed