[xep-support] Re: A scenario in which break-after causes blank pages
G. Ken Holman
gkholman at CraneSoftwrights.com
Thu Aug 1 09:54:35 PDT 2013
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 at CraneSoftwrights.com |
Google+ profile: https://plus.google.com/116832879756988317389/about |
Legal business disclaimers: http://www.CraneSoftwrights.com/legal |
!DSPAM:87,51fa92f69854844612975!
More information about the Xep-support
mailing list