[xep-support] Re: A scenario in which break-after causes blank pages

From: G. Ken Holman <gkholman@CraneSoftwrights.com>
Date: Thu Aug 01 2013 - 09:54:35 PDT

At 2013-08-01 12:08 +0000, Harvey, Paul (Contractor) wrote:
>I have a source XML file comprised of <question> elements, which
>contain a bunch of text and tabular content.
>My stylesheet outputs the content for a <question> and then emits a
><fo:block break-after="page"/> so that the output for each question
>starts at the top of a new page.
>However, if the output for a question completely fills a page downs
>to it's last available line, then the <fo:block break-after="page"/>
>causes a blank page following it, which is not desirable.
>Is there anyway around this?

Usually there is *always* room for an empty block at the bottom of a
page, regardless of how close the last block is to the bottom. So I
would check your next-to-last block to make sure there are no
space-after= constraints that are pushing your block to the following page.

Alternatively, have you tried:

    <fo:block keep-with-previous="always" break-after="page"/>

... though that should be redundant.

I hope this helps.

. . . . . . . . . Ken

Public XSLT, XSL-FO, and UBL classes in the Netherlands     Oct 2013 |
Public XSLT, XSL-FO, UBL and code list classes in Australia Oct 2013 |
Contact us for world-wide XML consulting and instructor-led training |
Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm |
Crane Softwrights Ltd.            http://www.CraneSoftwrights.com/f/ |
G. Ken Holman                   mailto:gkholman@CraneSoftwrights.com |
Google+ profile: https://plus.google.com/116832879756988317389/about |
Legal business disclaimers:    http://www.CraneSoftwrights.com/legal |
(*) To unsubscribe, please visit http://lists.renderx.com/mailman/options/xep-support
(*) By using the Service, you expressly agree to these Terms of Service http://w
Received on Thu Aug 1 09:55:21 2013

This archive was generated by hypermail 2.1.8 : Thu Aug 01 2013 - 09:55:22 PDT