I need to insert in the header the Page number, like Page x of n. It should be something simple, but I can not get it to work.
I've tried.
<fo:page-sequence initial-page-number="1">
<fo:static-content flow-name="xsl-region-after">
<fo:block>Page <fo:page-number/> of
<fo:page-number-citation ref-id="theEnd"/> </fo:block>
</fo:static-content>
</fo:page-sequence>
With the xmlns:fo="http://www.w3.org/1999/XSL/Format namespace and in the end of the document
Any help would be appreciated.
Thanks