Argyn Kuketayev wrote:
2. general issue: suppose I'm printing a report. It's content is an XML
file, where <row> element contains rows, and every row has children, such as
columns or nested rowsets.
I put every row in a <fo:block>. Inside the block I may have blocks for row
content, tables for nested rowsets, etc.

That works fine, but I've a requirement: if the row takes more than one
page, then I've to show it's title in the page header.

a) What's the best approach to achieve it?
There is certainly no "best" approach.

As already noted, you can put the content of each row
element into a table and make the row title a table header.

Another approach is to put the title in a fo:marker and
use a fo:retrieve-marker in the static page header content.
Unfortunately, this is not fully implemented in FOP, so
you have to experiment whether it works for you.

> b) is it better approach to put the whole report into one table element?
The whole report? Hardly. Only the <row>s.

J.Pietschmann



Reply via email to