Informaltables breaking across columns

HelenM
Posts: 11

Informaltables breaking across columns

Wed Apr 03, 2013 12:05 pm

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
sorin_ristache
Posts: 4144

Re: Informaltables breaking across columns

Wed Apr 03, 2013 2:31 pm

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
HelenM
Posts: 11

Re: Informaltables breaking across columns

Wed Apr 03, 2013 4:06 pm

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

Return to “DocBook”

Who is online

Users browsing this forum: No registered users and 1 guest