[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Page break help

Subject: Page break help
From: "Ferry, Jeremy" <Jeremy_Ferry@xxxxxxxxxxxx>
Date: Mon, 12 May 2008 13:20:59 -0400
 Page break help
I've got a document who's content is a table that contains rows of
product line items. I'm using groups to break the product line items
into pages. At the very end of the product line items (on the last page)
I need to print a block of content. Currently I'm simply making the
group size small enough to make room for the block of content on the
last page but this has the undesirable side effect of not filling up the
available space on all previous pages.

For example, I can fit 7 records on a page but I need to put a block
after the last group that takes up the space of 2 records. So what I'm
trying to do is force a page break if the last group contains more than
5 records but all the previous pages should fit 7 records...

		<xsl:if test="position() = last()">

			<xsl:if test="count(current-group()) &gt; 5">
				<fo:block break-before="page"/>

			content block to follow last group goes here...


The <fo:block break-before="page"/> IS getting included in the output
but the page break is not happening. Am I doing something wrong? Maybe
I've just misunderstood how page breaks work?

Jeremy Ferry
Sr. Software Engineer
Sterling Commerce, an AT&T company
Eden Prairie, MN

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.