I'm working with XSL-FO (processed using Apache FOP).
My xsl code for tables looks like this:
<!-- ... Some xsl fo code with data occupying 1/2 page ... -->
<fo:table>
<fo:table-header>
Item Name
</fo:table-header>
<fo:table-footer>
Total:
<xsl:value-of select="total" />
</fo:table-footer>
<fo:table-body>
<fo:table-row>
<xsl:value-of select="itemName" />
</fo:table-row>
</fo:table-body>
</fo:table>
I want to have a table footer at the bottom of every page (I tried using fo:table-footer
).
I also want a footnote on the pages following the first one: if content requires more than a single page I need the footnote "Continuation of previous page"
after the table footer.
The table footer must show the total value only on the last page (I mean if I've 6 pages of table content every page except last must have footer with total value as blank and last page footer with value).
XML source:
<itemDetail>
<itemName>Car1</itemName>
<itemName>Car2</itemName>
<itemName>Car3</itemName>
<itemName>Car4</itemName>
<itemName>Car5</itemName>
<itemName>Car6</itemName>
<itemName>Car7</itemName>
<itemName>Car8</itemName>
<itemName>Car9</itemName>
<itemName>Car10</itemName>
<itemName>Car11</itemName>
<itemName>Car12</itemName>
<itemName>Car13</itemName>
<itemName>Car14</itemName>
<itemName>Car15</itemName>
<itemName>Car16</itemName>
<itemName>Car17</itemName>
<itemName>Car18</itemName>
<itemName>Car19</itemName>
<itemName>Car20</itemName>
</itemDetail>
<total>20</total>
Required sample output of page 1:
Required sample output of Page 2: