This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: FO total page count
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] FO total page count
- From: Karsten Senz <K dot Senz at intershop dot de>
- Date: Tue, 6 Mar 2001 09:34:55 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> -----Original Message-----
> From: Daniel Bradby [mailto:daniel@bjs.com.au]
> Sent: Tuesday, March 06, 2001 6:38 AM
> To: xsl-list@lists.mulberrytech.com
> Subject: [xsl] 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