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


 
   > 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


What happens if a float floats past this "last" block, creating another
page? Don't you end up with "page 21 of 20" ?

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp

 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]