Page 1 of 1

Informaltables breaking across columns

Posted: Wed Apr 03, 2013 12:05 pm
by HelenM
Hi

I am having some trouble with an <informaltable> as it is breaking across a column. I want to force it to start a new column. I thought that tables automatically were kept together. I checked the fo/param.xsl file and the keep-together.within-column was set to "auto". I changed it to "always", but it doesn't seem to have done the trick.

Can anyone help?

Thanks very much.
Best wishes,
Helen

Re: Informaltables breaking across columns

Posted: Wed Apr 03, 2013 2:31 pm
by sorin_ristache
Hi,

You have to add the attribute keep-together.within-column=always in the attribute set called table.table.properties from fo/param.xsl. You should create a Docbook customization layer that adds this property in table.table.properties:

Code: Select all

<xsl:attribute-set name="table.table.properties">
<xsl:attribute name="border-before-width.conditionality">retain</xsl:attribute>
<xsl:attribute name="border-collapse">collapse</xsl:attribute>
<xsl:attribute name="keep-together.within-column">always</xsl:attribute>
</xsl:attribute-set>

Regards,
Sorin

Re: Informaltables breaking across columns

Posted: Wed Apr 03, 2013 4:06 pm
by HelenM
Again Sorin, thank you so much. You have solved the problem in 5 minutes that I have been bashing my head against a wall trying to solve for some time now! :D