docbook 5 to pdf CALS won't break single page
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 2
- Joined: Sat Jan 05, 2008 6:15 am
docbook 5 to pdf CALS won't break single page
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
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
-
- 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
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
-
- Posts: 2
- Joined: Sat Jan 05, 2008 6:15 am
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
<?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
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service