RE: Possible to avoid page breaks between table rows with keep-together?

2008-08-11 Thread Griffin,Sean
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: fop-users@xmlgraphics.apache.org
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.

Re: Possible to avoid page breaks between table rows with keep-together?

2008-08-11 Thread Jeremias Maerki
So you want to keep multiple table-rows together. You can do that by
using keep-with-next.within-page=always if you have already specified
keep-together on the row. Essentially, with the keep-together on the
rows you make sure they can't be split and with the keep-with next, you
can glue individual table-rows together. HTH

On 11.08.2008 11:49:51 Marx, Alexander wrote:
 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
  


Jeremias Maerki


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