Wednesday, March 22, 2006

Page XX of XX with xsl-fo

If you want the Page-number in a XSL you use <fo:page-number>
but what if you want the pagenumber followed by the total pagenumber ?
the trick is to add <fo:page-number-citation ref-id="endofdoc"/> with the tag
<fo:block id="endofdoc"/> at the end of the stylesheet.

No comments: