RE: [xsl] [xsl-fo] how to suppress footers in a blank page

Subject: RE: [xsl] [xsl-fo] how to suppress footers in a blank page
From: Peter Kester <Peter.Kester@xxxxxxxxxxx>
Date: Tue, 12 May 2009 10:41:14 +0200
Hi Geert,


You can define a simple page master named blank like this:
<fo:simple-page-master master-name="blank"
xsl:use-attribute-sets="page.settings.blank.portrait">
        <fo:region-body region-name="region.body" display-align="center"/>
</fo:simple-page-master>

And stick this into a page sequence master like this:

<fo:page-sequence-master master-name="Chapter">
        <fo:repeatable-page-master-alternatives maximum-repeats="no-limit">
                <fo:conditional-page-master-reference master-reference="blank"
blank-or-not-blank="blank"/>
                <fo:conditional-page-master-reference
master-reference="odd.page" odd-or-even="odd"/>
                <fo:conditional-page-master-reference
master-reference="even.page" odd-or-even="even"/>
        </fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>

So when every chapter is put into its own page sequence master and you force
the chapter to end on an even page, then a blank page without header or footer
gets added.

Best regards,

Peter




Ing. P.A. Kester
Senior Consultant


http://www.daidalos.nl/
Daidalos BV
Source of Innovation
Hoekeindsehof 1-4
2665 JZ Bleiswijk
Tel.: +31 (0) 10 850 1200
Fax: +31 (0) 10 850 1199
http://www.daidalos.nl/
KvK 27164984
De informatie - verzonden in of met dit emailbericht - is afkomstig van
Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit
bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit
bericht kunnen geen rechten worden ontleend.


Van: Geert Bormans [mailto:geert@xxxxxxxxxxxxxxxxxxx]
Verzonden: dinsdag 12 mei 2009 2:47
Aan: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Onderwerp: [xsl] [xsl-fo] how to suppress footers in a blank page

Hi,

I am adding a blank page if a chapter in a book starts on an even page, using
break-before The footer and header are calculated dynamically with markers and
all that How can I prevent the footer from appearing on the blank page.

I thought of having a conditional page master reference excluding the
region-before and region-after But I suspect that I will get an error since I
am stuffing things in a region that is not defined...

Any suggestions?

Thanks

Geert

Current Thread