I have an xsl file to generate a pdf. I want to put a footer on the bottom of the last page. I tryed something like this:
<?xml version="1.0" encoding="windows-1252"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="windows-1252"/>
<xsl:template match="/">
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<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>
<fo:simple-page-master master-name="A4" page-width="210mm" page-height="297mm" margin-top="1cm" margin-bottom="1cm"
margin-left="1cm" margin-right="1cm">
<fo:region-body margin-top="90mm" margin-bottom="80mm"/>
<fo:region-before extent="90mm"/>
<fo:region-after extent="80mm"/>
<fo:region-start/>
<fo:region-end/>
</fo:simple-page-master>
</fo:layout-master-set>
<html>
<fo:page-sequence master-reference="A4">
<fo:static-content flow-name="xsl-region-before">
<fo:block>
header
</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
body
</fo:flow>
<fo:static-content flow-name="xsl-region-after">
<fo:block>
footer
</fo:block>
</fo:static-content>
</fo:page-sequence>
</html>
</fo:root>
</xsl:template>
The Footer appears at the end of the body and not at the end of the page, i dont know how to do it.