You need a layout-master-set like the one below. FOr you first page, flow the logo into
the FirstMatHdr which is the region-before for the First Page only. The rebuild you header
without the logo in otherMatHdrs. No need to even think about page #'s

John G

   <fo:layout-master-set >
  <fo:simple-page-master master-name="firstMatrixPage"
   <fo:region-before region-name="firstMatHdr" extent="27mm"/>
  <fo:simple-page-master master-name="matrixPages"
   <fo:region-before region-name="otherMatHdrs" extent="27mm"/>

  <fo:page-sequence-master master-name="MatrixLayout">
   <fo:repeatable-page-master-reference master-reference="matrixPages"/>
     page-position="first" />

Henriksen Niels Kristoffer wrote:

Ok, so that's what you want! I'm sure you do not need access to page numbers
at the XSLT stage to do that. I haven't done this myself as I'm not very
experienced with FO yet, but for myself, I would look at § 6.4.5 - § 6.4.20
of the, and I'll suggest you to do the same.


-----Original Message-----
From: Dang Minh Phuong [mailto:[EMAIL PROTECTED]]
Sent: 31. oktober 2002 09:55
Subject: RE: Current page???

If so, simpler, I want to have a special header for my first page.

<fo:page-sequence-master master-name="contents with logo">
        <fo:single-page-master-reference master-reference="special header"/>
<!--this page has bigger header to put a logo-->
      <fo:repeatable-page-master-reference master-reference="normal page"/>
<!--the rest has normal deader size-->

<fo:page-sequence master-reference="contents with logo">
        <fo:static-content flow-name="xsl-region-before">
                <!-- how can I check the first page to put this logo???
                        because this logo is required to put in first page
only -->
                <fo:block text-align="center" space-after.optimum="10pt">
                  <fo:external-graphic src=""file:../logo/aviva.gif" /">file:../logo/aviva.gif"/>

                <!-- this normal header is shown in every page including
first page -->
            <xsl:call-template name="normal-header"/>

      <fo:static-content flow-name="xsl-region-after">
                <xsl:call-template name="copyright"/>

      <fo:flow flow-name="xsl-region-body">
                  <!-- very long content here -->

-----Original Message-----
From: Henriksen Niels Kristoffer [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 31, 2002 4:23 PM
Subject: RE: Current page???

You can not, I'm afraid. Afaik, page numbers are calculated only after all
of the transformation has been completed. So you cannot ask for pagenumbers
in an XSLT-context.

I will suggest that you study the FOP-process to learn more about what is
happening and when it's happening.

Niels Henriksen

-----Original Message-----
From: Dang Minh Phuong [mailto:[EMAIL PROTECTED]]
Sent: 31. oktober 2002 06:33
Subject: Current page???

Hi all,

How can I check current page I am at (something like <fo:page-number>)

Ex :
<xsl:if test="<???page-number???>='2'">
        <!-- do something here -->

John Gentilin
Eye Catching Solutions Inc.
18314 Carlwyn Drive
Castro Valley CA 94546

    Contact Info
Ca Office 1-510-881-4821
NJ Office 1-732-422-4917

Reply via email to