Alexander, It's hard to tell, but I'm assuming that the row that contains the text "There should not be a page break now" is supposed to stay on the same page as the rows containing the texts "With this line" and "And this line"? If so, you could accomplish this a couple of different ways. You could either use keep-with-next.within-page="always" or (keep-with-previous) on the rows that you want to keep together, or you could wrap all related rows inside a nested table with keep-together.within-page="always" on that table.
Realize that you're currently specifying keep-together.within-page on the individual rows, and as you can see, those rows are keeping together and not allowing a page break in the middle. If you want a series of rows to keep-together than you have to wrap those rows inside a parent block where keep-together is specified on that block. Or...use keep-with-next/previous. The approach that works the best will likely be determined by the algorithm you use to create this FO. Sean From: Marx, Alexander [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2008 4:50 AM To: [email protected] Subject: Possible to avoid page breaks between table rows with keep-together? Hello FOP-Users, I need some help with using keep-together correctly. I am using the latest 0.95 release. I have attached a sample purchase order document which has a number of order lines with different kinds of additional information. The requirement is: One order line should be kept together on one page including all additional information. If the order line does not fit on the same page it is supposed to trigger a page break. I have tried to set keep-together accordingly but if you look at the output of the sample xml you'll find that there still is a page break within the same order line Can you point me in the right direction how it is possible to achieve the intended behaviour? Regards, Alexander ---------------------------------------------------------------------- CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024.
