xsl-list
[Top] [All Lists]

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

2014-05-22 15:30:13
Hi

I simply don't understand how the
"fo:repeatable-page-master-alternatives" works? Is it the order of the
children that makes it work?

I don't understand how my "last" odd page can escape being degraded to
being one on the "rest" when then blank page is added to get the even
count.

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)

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