This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: FO total page count


> -----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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]