[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] forcing page breaks
----- Original Message ----- From: "Tom Peters" <tpeters@xs4all.nl> To: "DocBook-Apps" <docbook-apps@lists.oasis-open.org> Sent: Monday, January 12, 2004 6:14 AM Subject: [docbook-apps] forcing page breaks > I have a DocBook text that I process with xsltproc and fop: that calls > xerces and SAX2 in the way that my (Debian) system has been set up. > The PDF output has a flaw that I like to correct: a table header is put at > the bottom of a page, but the table itself is on the next page. I want > the header to move to the next page too. > In the XSLT FAQ > (http://www.dpawson.co.uk/docbook/styling/fo.html#d2475e55) it is > suggested to include the statement: <?dbfo break-before="page"?> > > Q1: Is that supposed to go at the proper place in the DocBook text, or do > I need to insert it into the .fo file? (hint: make this explicit in the > FAQ). Normally such processing instructions go in the DocBook XML to be acted upon by the stylesheet. > I tried both, but neither seem to have any effect (not even an error > message). There are several <?dbfo ?> processing instructions defined for the XSL stylesheets, but break-before="page" is not one of them. I think that was an incomplete answer in the FAQ. The missing part was that you had to write the XSL to implement the break. > I use Norman Walsh'es XSL stylesheet, and specify "--stringparam > fop.extensions 1" for xsltproc. > > Q2: What else do I need to do to make the processing tools heed that > <?dbfo> statement? This message has a slightly different method for manual page breaks: http://lists.oasis-open.org/archives/docbook-apps/200306/msg00103.html > Incidentally, in the .fo file the table header is in a <block>, which has > statements like: space-before-minimum="0.5em" , etc. If I increase those > numbers I can move the line to the next page; but that is not the way > things are supposed to go. Bob Stayton Sagehill Enterprises bobs@sagehill.net
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]