> From: Jay Chiu [mailto:[EMAIL PROTECTED]
>
> In your example, you set the outer block-container relative to
> the beginning of the page.
> <fo:block-container
>             width="4.7in"
>             height="2in"
>               top="3in"
>             left="3.8in">
> But as I mentioned the table height depends on the number of
> data rows in database, the table may span a few pages, I am
> unable to set the "top" attribute on the outer block-container.
> In you example, if I add one more table-row, it breaks. If I add

So what I mean is, you know beforehand ( that is to say: right before the fo
is piped through to FOP ) how many rows are in each table *and* you know the
row-height, the body-region-height, etc. In short, all the information is
available to perform the necessary calculations by hand ( at that particular
point in time ), so with a bit of imagination this should actually be
possible to implement... ( I'm thinking in the direction of iterating
through the fo once, before the actual rendering, and replacing all the
'top'-attributes for the outer block-containers to their exact values WRT
the page where they are going to end up... This sort of 'correction' would
hardly be worth the effort to add to FOP itself though, IMO - leaves at
least some responsibility to the users to supply FOP with state-of-the-art,
well-formed XSL-FO :) )

What you also should have done, each time when adding X new rows to the
table, was increase the top attribute for the outer block-container by ( X *
row-height ), alternately ( (X * row-height) - ((number-rows * row-height)
mod region-body-height) ), or sth of the sort...
[ For the following tables, you should, each time have to take into account
the number of rows of the previous tables as well as the number of
block-containers placed in between... ]

> 5 more table-row's, fop got error:

> [INFO] [1]
> [ERROR] null
>

Most probably due to an illegal fo construct, I fear... Could be something
as small as forgetting a tag somewhere when making the adjustments? Try
performing this with the '-d' option, sth will turn up...

Greetz,

Andreas Delmelle


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to