docbook 5 to pdf CALS won't break single page

Here should go questions about transforming XML with XSLT and FOP.
gmosesx
Posts: 2
Joined: Sat Jan 05, 2008 6:15 am

docbook 5 to pdf CALS won't break single page

Post 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
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post 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
gmosesx
Posts: 2
Joined: Sat Jan 05, 2008 6:15 am

Post 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
Post Reply