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

FO: Forcing a page break/new page

Subject: FO: Forcing a page break/new page
From: Ralph Holz <ralph.holz@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 23 Aug 2004 12:00:38 +0200
xsl fo page break
Hi,

Is there a way to force a page break within an fo:flow/fo:block?

If you're wondering why I need to do that, here's the explanation (bit of a reading...):

I've got a situation that looks like this: so far, we had a set of XSLT stylesheets, each one creating an FO document that was rendered into one PDF document. A common layout was defined in an external stylesheet (inc_grid.xsl) that was included by each of the stylesheets. inc_grid contains the template that matches the root element, sets up the page master, defines one page sequence with one flow, one block and then calls the template "body" in each of the including stylesheets. These contain the instructions to fill the block and since one stylesheet creates one document, all is fine.

NB: inc_grid cannot be changed by our group - it's provided by our client.

So now we need to integrate all of these stylesheets into one. To this end, I've changed them into templates which are called by a new controlling stylesheet. This controller includes inc_grid.xsl:

<xsl:include href="inc_grid.xsl" />
<xsl:template name="body">
  <xsl:call-template name="docA" />
  <xsl:call-template name="docB" />
  <xsl:call-template name="docC" />
</xsl:template>

Works fine so far - but each new "integrated document" should begin on a page of its own. Since the containing flow is defined in inc_grid, which we cannot change, it doesn't yet, and I'm wondering if I can force a page break.

Thanks for any ideas,
Ralph

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.