|
Subject: Re: [xsl] Condition "last" and force-page-count From: "Betty Harvey harvey@xxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Thu, 22 May 2014 14:43:32 -0000 |
If I understand the question you want the blank page to be totally blank.
Below is an example that works:
<fo:page-sequence-master master-name="DocBody">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference
master-reference="OddPageLast"
odd-or-even="odd" page-position="last"/>
<fo:conditional-page-master-reference
master-reference="BlankPage"
blank-or-not-blank="blank"/>
<fo:conditional-page-master-reference
master-reference="FirstOddPage"
odd-or-even="odd" page-position="first"/>
<fo:conditional-page-master-reference
master-reference="EvenPage"
odd-or-even="even" page-position="rest"/>
<fo:conditional-page-master-reference
master-reference="OddPage"
odd-or-even="odd" page-position="rest"/>
<fo:conditional-page-master-reference
master-reference="OddPageLast"
odd-or-even="odd" page-position="last"/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
Also you need to create a 'simple-page-master' with no content.
<fo:simple-page-master master-name="BlankPage" margin-left=".75in"
margin-right=".75in" page-width="8.5in"
page-height="11in">
<fo:region-body margin-top=".5in" margin-bottom=".5in"
column-gap=".25in"
column-count="1" region-name="BlankBody">
</fo:region-body>
<fo:region-before reference-orientation="0"
extent=".8in" display-align="before"
region-name="BlankPageHeader"/>
</fo:simple-page-master>
Good luck!
Betty
> Hi list
>
> For an XSLT/FO stylesheet I use repeatable-page-master-alternatives
> with three contions: bfirstb, blastb and brestb. Works well.
>
> The page output can be even or odd.
>
> When the output is odd, I want to add a blank page.
>
> Normally I can use the bforce-page-countb attribute, and set the value
> to bevenb and it adds a blank page if the blastb page is odd. But
> that
> gives me a problem because the blastb page is then no longer the
> blastb page but the last except for the blank page.
>
> So how can I solve this problem? I want blastb to remain blastb
> also
> if the very last page is blank?
>
> In addition, the added blank page is not all blank but have a page
> footer. Can it be avoided? I prefer an all-blank page at the very end,
> if blastb page is odd?
>
> Regards
> Jesper Tverskov
>
>
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Betty Harvey | Phone: 410-787-9200 FAX: 9830
Electronic Commerce Connection, Inc. |
harvey@xxxxxxxxxx | Washington,DC XML Users Grp
URL: http://www.eccnet.com | http://www.eccnet.com/xmlug
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\/\/
Member of XML Guild (www.xmlguild.org)
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] Condition "last" and force-pa, Jesper Tverskov jesp | Thread | Re: [xsl] Condition "last" and forc, Jesper Tverskov jesp |
| [xsl] Condition "last" and force-pa, Jesper Tverskov jesp | Date | Re: [xsl] Condition "last" and forc, Jesper Tverskov jesp |
| Month |