W3C home > Mailing lists > Public > www-xsl-fo@w3.org > June 2011

Re: Blank page at the end of document

From: G. Ken Holman <gkholman@CraneSoftwrights.com>
Date: Tue, 14 Jun 2011 20:07:25 -0400
Message-Id: <>
To: www-xsl-fo@w3.org
At 2011-06-14 02:46 -0700, martin.schuster wrote:
>Hello, Ive got this problem with xsl-fo: at the end of my document I have a
>page with 2-column layout (the rest is simple layout) which is generated
>only when condition is true. When condition is false I need to display
>nothing, instead of displaying blank page. Can anyone help me how could I
>avoid the blank page?

By not producing the page sequence.

Perhaps you have:

   <page-sequence master-reference="">
     <flow flow-name="">
       <xsl:if test="condition">

If so, you need to do this:

   <xsl:if test="condition">
     <page-sequence master-reference="">
       <flow flow-name="">

I hope this helps!

. . . . . . . . Ken

Contact us for world-wide XML consulting & instructor-led training
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/f/
G. Ken Holman                 mailto:gkholman@CraneSoftwrights.com
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal
Received on Wednesday, 15 June 2011 00:08:01 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:58:35 UTC