W3C home > Mailing lists > Public > www-xsl-fo@w3.org > July 2008

Re: Orphans and Widows used with tables?

From: Jeremias Maerki <dev@jeremias-maerki.ch>
Date: Wed, 23 Jul 2008 10:27:42 +0200
To: www-xsl-fo@w3.org
Message-Id: <20080723102538.86D2.60BA733C@jeremias-maerki.ch>

Klaus, please take a look at the following extension in Apache FOP:

That might help in your case. Otherwise, just try to apply
keep-with-next/previous on the table-rows. You can surely find out how
many rows you have in XSLT can keep the last three or so together.

On 23.07.2008 09:14:56 Klaus Gradinger wrote:
> Hello.
> I'm using the Apache FOP processor and have the following problem: I have a
> table with a variable length. The last row of the table is a "Sum" row,
> adding all the previous rows and displaying the sum. In some cases a
> unfortunate page - break occurs: All the real rows are on page 1 and the
> only row on page 2 is the sum Row.
> How can I fix this? I want at least 3 rows on the new page (meaning: Taking
> them away from page 1 and adding them on page 2).
> I'm looking for something like orphans and widows, but widows and orphans
> just work with fo:blocks... encapsulating the whole table with a fo:block
> didn't work, it just got ignored.
> Thanks a lot in advance,
> Klaus
> -- 
> View this message in context: http://www.nabble.com/Orphans-and-Widows-used-with-tables--tp18605175p18605175.html
> Sent from the w3.org - www-xsl-fo mailing list archive at Nabble.com.

Jeremias Märki
Jeremias Märki, Software-Development and Consulting
Contact Information: http://www.jeremias-maerki.ch/contact.html
Blog: http://www.jeremias-maerki.ch/blog/
Received on Wednesday, 23 July 2008 08:28:14 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:58:32 UTC