Re: [xsl] Condition "last" and force-page-count

Subject: Re: [xsl] Condition "last" and force-page-count
From: "Betty Harvey harvey@xxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 23 May 2014 01:59:57 -0000
Hi Jesper:

Did you create a separate 'EvenPageLast' 'simple-page-master'?  If you
need to it be different then a different page specification needs to be
created.

Betty

> 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)
>>
> 
>


/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
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