• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

PDF pagination using FOP & xsl-fo

 
Greenhorn
Posts: 1
VI Editor
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm new at this X{ S | M }L stuff, so bear with me...
I'm creating a PDF document that contains a header, footer, and 1 or more tables of varying length with each table remaining intact for each page (think 'fo:table-row keep-with-next.within-page="always"'). I've been successful keeping everything where it needs to go. My problem is that when there is not enough room on the current page for the next table, I need to put a message on the current page that reads something like "***continued on page N***" where N is the next page number. Ideally, this line of text would be positioned 1 table row beneath the last table row of the last table on the current page. The beginning of the next page (beneath the header) must read "***continued from page N***" where N is the previous page number. I've google'd and read documents until I see them in my sleep, and have failed at finding a solution. Surely xsl has some attribute/variable/parameter combination that says "too much data for this page, put it on the next" that I can test in order to implement the appropriate message.

I'm thinking there must be a way to set a variable manipulate it such that I can get what I want:

Is there a way to do something like (and I don't know the proper syntax, yet):

and

Any help or direction to a know-it-all document or web-site is greatly appreciated.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic