To keep items within a row together, I use keep-together="always" on table-row elements. This seems to work reasonably well. To keep rows together, I use keep-with-next="always" on table-row elements. I've had varying degrees of success with this, mostly I suspect due to cockpit error.
-----Original Message----- From: Moore, Spring [mailto:[EMAIL PROTECTED] Sent: Monday, February 23, 2004 1:25 PM To: '[EMAIL PROTECTED]' Subject: Page breaks & keeps Greetings all. I am having a basic formatting issue concerning page breaks. The scenario: I am calling several items of information to be displayed in a single table row (which is set up as a template). This call loops N times, depending on how many "rows" of information there are in the XML. Now, within a cell in this table row, I can have between 4 & 10 fo:blocks, depending on whether or not these data elements are present in the XML. I am trying to prevent a page break from happening within the middle of this row when the fo is rendered into a PDF. I have read the buglist as well as the W3C compliance list. While the compliance list states FOP supports keeps (keep-together.within-page="always") for table rows, I can't see any evidence of this working. Page breaks will still occur between the fo:blocks, despite my best efforts to prevent this. (Among techniques I have tried is putting each fo:block into its own row and placing keep attributes on each of these rows within a child table of the parent cell. No change in display. Using page-break causes each row to be on its own page, which is not an acceptable result. I have tried some other methods as well, to no avail.) Does anyone have any suggestions? I can provide a current code snippet if necessary. Many thanks. Spring Moore Technical Producer ICG Commerce Office: 215.649.1446 [EMAIL PROTECTED] ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the mail administrator at [EMAIL PROTECTED] www.icgcommerce.com ********************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This electronic transmission is strictly confidential to Smith & Nephew and intended solely for the addressee. It may contain information which is covered by legal, professional or other privilege. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]