xsl-list
[Top] [All Lists]

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

2014-05-22 21:00:17
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(_at_)eccnet(_dot_)com
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> 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: â??firstâ??, â??lastâ?? and â??restâ??. 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 â??force-page-countâ?? attribute, and set the
value
to â??evenâ?? and it adds a blank page if the â??lastâ?? page is odd.
But
that
gives me a problem because the â??lastâ?? page is then no longer the
â??lastâ?? page but the last except for the blank page.

So how can I solve this problem? I want â??lastâ?? to remain â??lastâ??
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 â??lastâ?? page is odd?

Regards
Jesper Tverskov




/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Betty Harvey                         | Phone:  410-787-9200  FAX: 9830
Electronic Commerce Connection, Inc. |
harvey(_at_)eccnet(_dot_)com                    | 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(_at_)eccnet(_dot_)com                    | Washington,DC XML Users Grp
URL:  http://www.eccnet.com          | http://www.eccnet.com/xmlug
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\/\/
Member of XML Guild (www.xmlguild.org)
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>