I have an XSL-FO file with a header and footer.
I added static content for the header and footer, but I want the footer to only display on the last page.
How ca
Within <fo:layout-master-set>
, you can define a page sequence:
<page-sequence-master master-name="pages">
<repeatable-page-master-alternatives>
<conditional-page-master-reference page-position="last" master-reference="last-page"/>
<conditional-page-master-reference master-reference="other-page"/>
</repeatable-page-master-alternatives>
</page-sequence-master>
Then you can define a simple-page-master for the last page, which contains a region-after that only appears on this page.
Tutorial