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

From: Kevin Brown <kevin@renderx.com>
Date: Thu Aug 01 2013 - 10:16:12 PDT

In such a scenario, i would normally wrap everything in a block-container and use break-before on that block-container, or use break-before at the start of the question.

After all, this is exactly the way you state what you want. You want a question to start a new page, not a blank page created after a question.

Kevin Brown

"G. Ken Holman" <gkholman@CraneSoftwrights.com> wrote:

>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 |
>
>
>!DSPAM:87,51fa92f69854844612975!
>
>
>_______________________________________________
>(*) 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
>ww.renderx.com/terms-of-service.html
_______________________________________________
(*) 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
ww.renderx.com/terms-of-service.html
Received on Thu Aug 1 10:16:34 2013

This archive was generated by hypermail 2.1.8 : Thu Aug 01 2013 - 10:16:34 PDT