Subject: RE: FO total page count
From: Karsten Senz <K.Senz@xxxxxxxxxxxx>
Date: Tue, 6 Mar 2001 09:34:55 +0100
|
> -----Original Message-----
> From: Daniel Bradby [mailto:daniel@xxxxxxxxxx]
> Sent: Tuesday, March 06, 2001 6:38 AM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: FO total page count
>
>
>
> Is it possible to get a total page count so I can put
> Page 3 of 20
> in my page footer with FO?
Sure,
place an id attribute at the last block in your document like:
<fo:block id = "lastBlock">
...
</fo:block>
Now you can access the pagenumber of this last block by using:
<fo:page-number-citation ref-id = "lastBlock"/>
HTH Karsten
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|