[xep-support] initial-page-number forces blank page

From: Bob Stayton (bobs@sagehill.net)
Date: Thu Feb 05 2004 - 15:53:42 PST

  • Next message: Andrzej Jan Taramina: "[xep-support] How to turn on quiet mode with Cocoon Serializer?"

    I've discovered that I get an unwanted blank page when I
    set a page-sequence's initial-page-number property to an odd number
    when the previous page-sequence ends on an odd number.

    I've included a complete FO example with two page sequences, each
    with a short block of text for a single page. If the second page-sequence
    has initial-page-number set to an odd number such as 5, my output is:

    1 First page text.
    2 Blank page.
    5 Second page text.

    If I set initial-page-number to an even number, say 6, I get:

    1 First page text.
    6 Second page text.

    I get the same behavior with XEP, FOP, and Antenna House. It appears the
    XSL-FO processors require the pages to alternate odd and even numbers,
    even when the numbering is being manually reset. This is not useful when
    you are
    producing single-sided output. I've not found a property that turns off
    this behavior. Is there one?

    Bob Stayton
    Sagehill Enterprises
    Docbook Consulting
    bobs@sagehill.net

    <?xml version="1.0"?>
    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
      <fo:layout-master-set>
        <fo:simple-page-master master-name="body" page-width="8.5in"
    page-height="11in" margin-top="0.5in" margin-bottom="0.5in"
    margin-left="1in" margin-right="1in">
          <fo:region-body margin-bottom="0.5in" margin-top="0.5in"
    column-gap="12pt" column-count="1"/>
          <fo:region-before region-name="xsl-region-before" extent="0.4in"
    display-align="before"/>
          <fo:region-after region-name="xsl-region-after" extent="0.4in"
    display-align="after"/>
        </fo:simple-page-master>
      </fo:layout-master-set>
      <fo:page-sequence master-reference="body">
        <fo:static-content flow-name="xsl-region-before">
           <fo:block>
             <fo:page-number/>
           </fo:block>
        </fo:static-content>
        <fo:flow flow-name="xsl-region-body">
          <fo:block>
            <fo:block>First some text on the first page
            </fo:block>
          </fo:block>
        </fo:flow>
      </fo:page-sequence>
      <fo:page-sequence master-reference="body" initial-page-number="5">
        <fo:static-content flow-name="xsl-region-before">
           <fo:block>
             <fo:page-number/>
           </fo:block>
        </fo:static-content>
        <fo:flow flow-name="xsl-region-body">
          <fo:block>
            <fo:block>Then some text on the second page
            </fo:block>
          </fo:block>
        </fo:flow>
      </fo:page-sequence>
    </fo:root>

    -------------------
    (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
    in the body of the message to majordomo@renderx.com from the address
    you are subscribed from.
    (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html



    This archive was generated by hypermail 2.1.5 : Thu Feb 05 2004 - 16:00:05 PST