Michaud, Jean-Francois wrote:
The sort of keep with next I need to be able to do Is paragraph related.
This is what I need to do:

If the para is less than 10 lines long, then keep it all on the same
page. If it is more than 10 lines then allow it to split but keep at
least 5 lines on the each page.

I'm not sure whether you can really specify this in XSLFO 1.0.

You can set orphans/widows to 5, which will fulfill the last condition.
Unfortunately for you, the orphans/widows properties are not implemented
in FOP 0.20.5.
The conventional wisdom for 0.20.5 say you should enclose the paragraph
in a one column, one row blind table and specify keep-together="always"
on the row. This has various drawbacks though, the paragraph is always
kept together and never split even if there are more than 10 lines,
and you'll get an increased memory consumption and a shot at generating
non-terminating loops.

You should evaluate whether you can use the development code (0.92
beta), which implements orphan/widows as well as keep properties.

J.Pietschmann

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to