On Mon, Feb 17, 2003 at 06:43:54PM +0100, Markus Spath wrote: > hi, > > is there a way to customize the docbook fo stylesheets so that page breaks are > enforced at certain <sect1> elements - e.g. for doctype article, if less than 3 > lines of text would be displayed on the page? > > i know that i can set the break.before attribute in the > section.title.level1.properties attribute set, but this would affect all sect1 > elements.
The FO property 'orphans' controls the minimum number of lines in a paragraph before a page break. The default is '2', and it sounds like you want to set it to '3'. When combined with the keep-with-next property that section titles have, it could achieve the results you want (assuming your FO processor supports that property). You could do this for the whole document by figuring out how to add orphans="3" to the <fo:root> element in the output. Until there is an attribute-set parameter for that element, you will have to do a customization of the root element template in fo/docbook.xsl. That is a big template for such a small customization. -- Bob Stayton 400 Encinal Street Publications Architect Santa Cruz, CA 95060 Technical Publications voice: (831) 427-7796 The SCO Group fax: (831) 429-1887 email: [EMAIL PROTECTED]