[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Page break help
At 2008-05-13 15:15 -0400, Ferry, Jeremy wrote:
What I'm trying to say is that I can fit 5 records plus my content block on a page. So, if there are more than 5 records (there can't be more than 7 because it's the last group and 7 is my group size), put the content block on a new page. I'm not actually breaking up the group, I'm just testing to see if I can fit all the records in the last group plus the content block on a single page. If not than insert a page break and put the content block on a fresh page. Does that make sense? Oh! If that is all you are trying to do, then wrap your content block with: <fo:block keep-together.within-column="always"> ...content blocks here... </fo:block> Then if the formatter cannot fit the entire set of content blocks on a single page, that infers a page break without you having to do anything. If it does fit, nothing happens, because it is all being "kept together" within the specified context. Trying to engineer page breaks on a measured running page position is against the spirit of XSL-FO and, hence, very difficult to get to work well. I hope this helps. . . . . . . . . . . . . . Ken
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|