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
Regards
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>
<fo:simple-page-master master-name="matrixPages"
<fo:region-before region-name="otherMatHdrs" extent="27mm"/>
</fo:simple-page-master>
<fo:page-sequence-master master-name="MatrixLayout">
<fo:repeatable-page-master-reference master-reference="matrixPages"/>
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference
master-reference="firstMatrixPage"
page-position="first" />
<fo:conditional-page-master-reference
master-reference="matrixPages"/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
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 http://www.w3.org/TR/xsl, and I'll suggest you to do the same.Niels.
-----Original Message-----
From: Dang Minh Phuong [mailto:[EMAIL PROTECTED]]
Sent: 31. oktober 2002 09:55
To: '[EMAIL PROTECTED]'
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><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"/>
</fo:block><!-- this normal header is shown in every page including
first page -->
<xsl:call-template name="normal-header"/>
<fo:static-content>
<fo:static-content flow-name="xsl-region-after">
<xsl:call-template name="copyright"/>
</fo:static-content><fo:flow flow-name="xsl-region-body">
<fo:block>
<!-- very long content here -->
</fo:block>
</fo:flow>
</fo:page-sequence>-----Original Message-----
From: Henriksen Niels Kristoffer [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 31, 2002 4:23 PM
To: '[EMAIL PROTECTED]'
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
To: '[EMAIL PROTECTED]'
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 -->
</xsl:if>
--
--------------------------------------
John Gentilin
Eye Catching Solutions Inc.
18314 Carlwyn Drive
Castro Valley CA 94546
Contact Info
[EMAIL PROTECTED]
Ca Office 1-510-881-4821
NJ Office 1-732-422-4917