Page 1 of 1

docbook 5 to pdf CALS won't break single page

Posted: Sat Jan 05, 2008 6:34 am
by gmosesx
I have a long table in docbook 5 CALS format. when transformed to pdf, the whole table attempts to cram itself onto one page, which is not enough space

I suspect there is a "keep together" issue somewhere.

I took out "always" on line 251 ot the table xsl, but the problem persists.

btw, when this works correctly, I will be very happy making schedules in excel and importing them into oxygen docbook table rows! please help

Posted: Mon Jan 07, 2008 6:29 pm
by sorin_ristache
Hello,

You have to change the attribute keep-together.within-column from always to auto in the attribute set formal.object.properties. You can do that with a DocBook customization layer which modifies this attribute set defined in ${frameworks}/docbook/xsl/fo/param.xsl where it sets the default value always for keep-together.within-column.


Regards,
Sorin

Posted: Sun Jan 13, 2008 9:07 am
by gmosesx
ok Sorin, I followed your link and watched the tutorial a few times, then I made a little ole xsl file like you said:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:import href="frameworks/docbook/xsl/fo/docbook.xsl"/>
<xsl:attribute-set name="formal.object.properties">
<xsl:attribute name="keep-together.within-column">auto</xsl:attribute>
</xsl:attribute-set>
</xsl:stylesheet>

then I "duplicated" the docbook pdf transformation by pointing to my new xsl file, and woweee! problem solved!

y'all are the greatest! thanks