• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to Fix the table footer at bottom of the Page in XSL FO?

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hi I'm working of XSL fo (using apache FOP) . I've Code in xsl for table Like ****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 footer at every Page bottom .(when I tried using fo:table-footer footer is coming next to the Last value of body)

I want to have footnote from 2nd page. (If Content in Page One Exceeds i Need a footnote as "Continuation of previous page " after the footer)

Footer Must print the Total Value only in 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 file for this is

<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 Page1 & Page2 images are attached . Please Check them .
Page-1.PNG
[Thumbnail for Page-1.PNG]
Page 1 Sample
Page-2.PNG
[Thumbnail for Page-2.PNG]
Page 2 Sample
 
reply
    Bookmark Topic Watch Topic
  • New Topic