Re: [xep-support] conditional page master

From: G. Ken Holman (gkholman@CraneSoftwrights.com)
Date: Wed Apr 14 2004 - 09:35:37 PDT

  • Next message: Chen, Cindy (C)(STP): "RE: [xep-support] conditional page master"

    At 2004-04-14 09:43 -0500, Chen, Cindy (C)(STP) wrote:
    >Is there a way to define a page sequence master to set a special page
    >master if the total page number is 1?

    Yes, create the following page sequence master using whatever name you need:

      <page-sequence-master master-name=.....
        <repeatable-page-master-alternatives maximum-repeats="1">
          <conditional-page-master-reference master-reference="firstAndLastPage"
               page-position="last"/>
          <conditional-page-master-reference master-reference="firstPage"/>
        </repeatable-page-master-alternatives>
        <repeatable-page-master-alternatives>
          <conditional-page-master-reference master-reference="lastPage"
               page-position="last"/>
          <conditional-page-master-reference master-reference="mainPage"/>
        </repeatable-page-master-alternatives>
      </page-sequence-master>

    With the above the processor has to decide on the first page from the first
    subsequence based on whether the first page is or is not the last page as
    well. After deciding, the second and subsequent pages come from the second
    subsequence choosing between being the last page of more than one page or
    just a middle page.

    >What I want to achieve is to have a large header on the first page and a
    >large footer on the last page and regular small header and footer on the
    >rest of the page. If the total page number of the output is 1, I would
    >like to have large header and large footer to be printed. I couldn't find
    >a way of doing this, does anybody have any suggestion?

    I hope that helps.

    ....................... Ken

    --
    Public courses: Spring 2004 world tour of hands-on XSL instruction
    Each week:   Monday-Wednesday: XSLT/XPath; Thursday-Friday: XSL-FO
    Hong Kong May 17-21; Bremen Germany May 24-28; Helsinki June 14-18
    World-wide on-site corporate, govt. & user group XML/XSL training.
    G. Ken Holman                 mailto:gkholman@CraneSoftwrights.com
    Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/f/
    Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
    Male Breast Cancer Awareness  http://www.CraneSoftwrights.com/f/bc
    -------------------
    (*) 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 : Wed Apr 14 2004 - 09:46:56 PDT