[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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

Subject: RE: [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
RE:  [xsl-fo] how to suppress footers in a blank page
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-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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.