xsl-list
[Top] [All Lists]

RE: Page breaks in a table...

2004-05-10 14:04:24
-----Original Message-----
From: Julian L. Hunter [mailto:hunterj(_at_)innovativelogic(_dot_)com]

Is there a way to tell when the page breaks while creating a table?

Hi,

Not exactly in XSL-FO. The possibilities are:
1. somehow keep track of the number of rows as they are created, combined
with the row-height. This would let you know at XSLT stage 'when' a
page-break occurs.
2. (if possible) use the region-before of the page to hold the
table-header(-table), insert an fo:retrieve-marker in there, and use
strategically placed fo:markers inside the table on the region-body. This
approach would do away with the need to know when the page-break occurs, but
is useful only if you don't need to modify the 'necessary data' (i.e. just
use it in it the output, no further arithmetic)

the nested table idea is fine with one exception, you can
end up with the header information as the last item on
a page, since you can no longer use keep-together
tags. :<


Hmm.. Maybe a combination of using the region-before, and adding separate
tables with the 'sub-headers' as headers (?)


HTH!

Greetz,

Andreas



<Prev in Thread] Current Thread [Next in Thread>