The key is in having a different header (or footer) on the first page versus
the others.  The steps to do this are:

1) Have a separate page master for the first page versus the rest of the
pages.

2) Add different region-names to the header (or footer) regions on those
pages.

3) Use the repeatable-page-master-alternatives feature to invoke the proper
page masters for the first versus the other pages.

4) In your actual page sequence, define the contents of the header (or
footer) regions to include the page number on in the "other pages" header
region.

Here's a fragmentary example:

<fo:layout-master-set>

        <fo:simple-page-master master-name="firstPage">
                <fo:region-before region-name="firstPage-before"/>
                <fo:region-body/>
        </fo:simple-page-master>

        <fo:simple-page-master master-name="otherPage">
                <fo:region-before region-name="otherPage-before"/>
                <fo:region-body/>
        </fo:simple-page-master>

        <fo:page-sequence-master master-name="contents">
                <fo:repeatable-page-master-alternatives>
                        <fo:conditional-page-master-reference
                                master-reference="firstPage"
                                page-position="first"/>
                        <fo:conditional-page-master-reference
                                master-reference="otherPage"
                                page-position="any"/>
                </fo:repeatable-page-master-alternatives>
        </fo:page-sequence-master>

</fo:layout-master-set>

<fo:page-sequence master-reference="contents">

        <fo:static-content flow-name="firstPage-before">
                <fo:block>
                        Look!  No page number here.
                </fo:block>
        </fo:static-content>

        <fo:static-content flow-name="otherPage-before">
                <fo:block>
                        The page number is <fo:page-number/>
                </fo:block>
        </fo:static-content>

        <fo:flow flow-name="xsl-region-body">
                <fo:block>
                    Body text.
                </fo:block>
        </fo:flow>

</fo:page-sequence>

        Hope this helps.

Patrick Rusk


-----Original Message-----
From: H. krishna [mailto:[EMAIL PROTECTED]
Sent: Saturday, February 08, 2003 5:43 AM
To: [EMAIL PROTECTED]
Subject: Page numbering


Hai,


i don't need the page number in the first page only.
but, want to second page start like "2".

Immediate response is highly appreciated.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to