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

Re: Condition "last" and force-page-count

Subject: Re: Condition "last" and force-page-count
From: "Jesper Tverskov jesper.tverskov@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 22 May 2014 18:23:49 -0000
Re:  Condition "last" and force-page-count
Looks promising, but not working here yet:

I have the all blank page working, and I guess that I should still use:
<fo:page-sequence master-reference="document" force-page-count="even">...?

But is it correct that both the first and the last
"fo:conditional-page-master-reference" is the same in your solution?

 <fo:conditional-page-master-reference
master-reference="OddPageLast"
                            odd-or-even="odd" page-position="last"/>

I have tried making one of them "even" but still it doesn't work.

My even "last" page gets the layout of "rest" when the blank page is
added as new last page.

cheers
Jesper


On Thu, May 22, 2014 at 4:43 PM, Betty Harvey harvey@xxxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
> 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

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.