Footer only for last page
I'm using XSLT templates to transform XML data to XSL-FO and then to PDF using FOP processor. I have a requirement to print some text at the bottom of last page of the generated pdf. If I place it in <fo:static-content flow-name="xsl-region-after"> blocks, it comes as footer on all pages which is not what I want. If I don't use xsl-region-after and place the text as part of the body, it does not show up at the bottom of the page. I'll be really grateful if anyone has any ideas to resolve this.