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

Question about ending document on even page

Subject: Question about ending document on even page
From: Colin DeClue <colin.declue@xxxxxxxxx>
Date: Thu, 5 Jan 2012 12:48:41 -0600
Question about ending document on even page
Hi,

I'm trying to get my document to end on what I have defined as my even
page, but it's giving me an extra page of the odd at the end. For
example, I've got 3 pages of content for the odd (the even is just
background image), so I'd want there to be 6 pages total. Instead, I'm
getting 7, with an extra odd page at the end.

Here's what I have:

<fo:layout-master-set>

        <fo:simple-page-master master-name="odd"
           page-width="8.5in"   page-height="11in"
           margin-top="0.13in"  margin-bottom="0.25in"
           margin-left="0.175in" margin-right="0.25in"
background-image="url({BOLReport/BackgroundImage})">
          <fo:region-body region-name="MainBody" margin-top="5.13in"
margin-bottom="2.6in" extent="2.53in" />
          <fo:region-body region-name="Charges" margin-top="8.6in"/>
          <fo:region-before extent="5.13in"/>
        </fo:simple-page-master>

        <fo:simple-page-master master-name="even"
           page-width="8.5in"   page-height="11in"
           margin-top="0.13in"  margin-bottom="0.25in"
           margin-left="0.175in" margin-right="0.25in"
background-image="url({BOLReport/TermPath})">
          <fo:region-body/>
        </fo:simple-page-master>

        <fo:page-sequence-master master-name="allPages">
          <fo:repeatable-page-master-alternatives>
            <fo:conditional-page-master-reference
              master-reference="even" odd-or-even="even"/>
            <fo:conditional-page-master-reference
              master-reference="odd" odd-or-even="odd"/>
          </fo:repeatable-page-master-alternatives>
        </fo:page-sequence-master>
      </fo:layout-master-set>

      <fo:page-sequence master-reference="allPages" font-size="10pt"
font-family="Courier New" force-page-count="even">
         ...
      </fo:page-sequence>

Any indication of what I'm doing wrong would be great.

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.