There is an example concerning this in the doco I think but...
Put a block like this in the document
fo:block border-color=white border-style=solid text-align=end
Page fo:page-number/ of fo:page-number-citation
ref-id=terminator/
/fo:block
and then at the end of the document put a block
Hi
One solution is to create an empty block at the end of the document with an
id and to use page-number citation toward this block.
fo:block id=endofdoc /
and
fo:block font-size=9pt line-height=15pt text-align=end
p. fo:page-number//fo:page-number-citation