Hi,

at XSLT stage, you can't, since rendering pages has not yet been performed.

but...
you can use a fo:repeatable-page-master-alternatives construction:

<fo:page-sequence-master master-name="myComplexMaster">
  <fo:repeatable-page-master-alternatives>
    <fo:conditional-page-master-reference
        master-reference="myLastPage"
        page-position="last"/>
    <fo:conditional-page-master-reference
        master-reference="myOtherPage"/>
  </fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>

If needed, you can use this in conjunction with fo:marker/fo:retrieve-marker couple.

Another alternative is to make some changes in the FOP IF file (see [1]) if a full FO solution doesn't help you.

[1] http://xmlgraphics.apache.org/fop/1.0/intermediate.html#strengths-if

Le 08/05/2012 11:26, Markus Ruggiero a écrit :
Hi,

I have a rather complex footer. The requirement is that one small detail must 
be different in the last page. Is there a simple way to accomplish this? Of 
course I can have different pages referencing different footer but this (at 
least in my understanding) requires me to duplicate the footer code and change 
that minor detail in one of them.
What I am looking for is something along the lines
<xsl:if test="$currentPageNumber = $lastPageNumber">  ....
How could I get reasonable values into the two variables? Is this possible at 
all? Any other idea?

Thanks for any help
---markus---

--
Pascal

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to