Thanks Chuck,

at least our problem seems to be a real one. Just to stress
that again (maybe someone else is caring), we also cannot
reasonable rely one some kind of page precalculation. Since we
render very different pages from a database and we have all kinds 
of stuff beside text: inlined pictures, non inlined pictures,
etc. Making a calculated layout would probably render the 
few days jobs to do an xslt to a few weeks job or even worse.
Essentially then buy someone to do manual typesetting would
be cheaper again :-(

Thanks anyway,
we'll wait for the next FOP's top come,
Frank

-----Ursprüngliche Nachricht-----
Von: Chuck Paussa [mailto:[EMAIL PROTECTED]
Gesendet am: Freitag, 19. April 2002 18:22
An: [EMAIL PROTECTED]
Betreff: Re: AW: Again: keep-together

Frank,

OK, that makes sense. You want to have a headline and then sanking 
columns underneath, like in a newspaper.

Headline Goes here

This is the   after the
information   headline
that goes     balanced.

New headline here

This is the   after the
information   headline
that goes     balanced.

I tried a whole bunch of stuff using the column-count attribute of 
region-body (which is the only way I know to create snaking columns.) 
Region-body is the only element with a column-count attribute (right?) 
And I couldn't get it to work. The basic idea would be to wrap two 
blocks in a block or block-container with a span="all"

        <fo:block-container height="15mm" width="190mm" top="0mm" 
left="0mm" position="absolute" border="solid 1px pink" span="all">
             <fo:block span="all">
                 Here's a headline #1 that should cross all the way 
across the page
             </fo:block>
             <fo:block span="none">
                 Now is the time for all good men to come to the aid of 
their country. Now is the time for all good men to come to the aid of 
their country. Now is the time for all good men to come to the aid of 
their country. Now is the time for all good men to come to the aid of 
their country. Now is the time for all good men to come to the aid of 
their country. Now is the time for all good men to come to the aid of 
their country.
             </fo:block>
         </fo:block-container>

But, that doesn't work. The inner blocks are not aware of the columns in 
the region containing them.

There have been a number of problems like this that I have not found an 
automated way to address and so have been forced to pre-calculate the 
page layout of each page and then absolutely position the contents on 
the page. For fo: processed documents, that looks like the only way to 
go for now unless someone else can chime in with a solution I haven't 
seen yet.

Chuck

Nestel, Frank ISC 6 wrote:

>Hello Chuck,
>
>thank you for replying. Unfortunately I failed to express myself clearly.
>Maybe since there are different problems playing together in that case.
>
>My point is that we do not see how to proceed by using tables for getting
>the two column formatting that our customer would have liked:
>
>We have those two column stuff alternating with one column parts. The two
>column parts consist of fairly complex (ie. nested) tables of vary varying
>length. The tables have to be splitted so that the left and right column
>are as balanced as possible, i.e. their length are as matching as possible.
>Counting lines and splitting after a half does not help. Beside being
rather
>involved, since the "lines" are tables and pictures themselves and do not 
>have constant height. 
>
>The only way we have found to do at least a rough approximation of equally
>long columns with fop was to use the two columned layout and NOT a two
>columned table. Are wrong?
>
>Thanks again,
>Frank
>
>-----Ursprüngliche Nachricht-----
>Von: Chuck Paussa [mailto:[EMAIL PROTECTED]
>Gesendet am: Donnerstag, 18. April 2002 19:12
>An: [EMAIL PROTECTED]
>Betreff: Re: Again: keep-together
>
>Frank,
>
>Hmmmm I'm not exactly sure what you're trying for but, here's some 
>suggestions:
>
>Use <fo:table-cell number-columns-spanned="2"> for the cell that has the 
>1 column header
>
>Use the <fo:region-before> <fo:static-content> area to hold what would 
>look like the regular table header that is printed on each page and then 
>break up each of the tables with those 1 column headers into separate 
>tables with the one column header on the <fo:table-header> area (That 
>way, if the table happens to break across a page boundary, the table 
>header is repeated on the next page.)
>
>Chuck Paussa
>
> > Nestel, Frank ISC 6 wrote:
> >
> > I know you all work hard. But just to express priority.
> > We are currently stuck with a problem we cannot see how
> > to cope without working "keep" properties.
> >
> > Or can anybody give me some help on how to achive below
> > layout with fop.
> >
> > 1.one-column header----------------
> >
> > 2.two-column table   two-column table
> > column1              column2
> >
> > 1.one-column header----------------
> >
> > 2.two-column table   two-column table
> > column1              column2
> >
> > 1.one-column header----------------
> >
> > 2.two-column table   two-column table
> > column1              column2
> >
> > ... above pattern repeats very often...
> > ... tables of varying length with very
> > variable height of single rows ...
> >
> > We are using the two columns to get the variable
> > length table no. 2 balanced between left and
> > right side (which BTW does not work to well,
> > the left hand side gets way to long). I do not
> > see how to achieve this effect with a table,
> > since I have absolute no means to measure the
> > where to break the table into into two parts.
> > We have long headers over the tables and those
> > header have to kept close to their table.
> >
> > I know how to do it with TeX, but this ain't help :-)
> > But its funny to run in this kind of problem over
> > 20 years after TeX was programmed.
> >
> > Best regards,
> > Frank Nestel
> >
> > -----Ursprüngliche Nachricht-----
> > Von: J.Pietschmann [mailto:[EMAIL PROTECTED]
> >
> > MARTIN Franck wrote:
> >
> > Does anyone know of a way to prevent blocks or tables from being divided
> > when a page break occurs?
> > Is the property keep-together implemented in fop?
> >
> >
> > The keep-together property is not yet implemented, and
> > it will take a while until it is.
> > The keep-with-next and keep-with-previous properties work
> > on table rows only.
> > If block elements should be kept together, you can put
> > them into a one-column blind table.
> >
> > HTH
> > J.Pietschmann
>


Reply via email to