You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by robert frapples <oy...@gmail.com> on 2004/12/10 18:50:26 UTC

Breaking between rows before breaking rows

I have a bunch of tables, each with a bunch of rows, each with some
content.  I set keep-with-next="'1'" for each row, expecting it to
page break between tables, which it does. . .

for the most part.  If a single table is longer than one page, rather
than breaking between rows, it breaks in the middle of a row.

Can I keep rows together when possible and break between tables AND
not break in the middle of a row?  Is there some trick to do this?

-Stephen

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: Breaking between rows before breaking rows

Posted by robert frapples <oy...@gmail.com>.
On Fri, 10 Dec 2004 13:25:44 -0600, JBryant@s-s-t.com <JB...@s-s-t.com> wrote:
> From all that I have read (and tried myself), you've just hit FOP in its
> weakest spot. The only think I can suggest is to chunk your content such
> that a table never crosses a page boundary.

Thats what I was afraid of.  I really can't chunk my content in any
meaningful way as my input is generated from a dataplace somewhere
else by somebody else.  I suppose I could write some kind of template
to split text data up into lines and make each line a row.  If I use a
monospaced font I can count characters. . .this is not going to be
fun.

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: Breaking between rows before breaking rows

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Andreas L. Delmelle wrote:
> Just wondering: is this only the case when both properties have a value of
> 'always'? The OP seemed to be using a (low) integer value for
> 'keep-with-next', so I concluded --perhaps mistakenly so-- that there was no
> risk of ending up with an infinite loop... since 'keep-together' would
> always have higher priority than 'keep-with-next' (?)

FOP 0.20.5 doesn't understand numerical priorities, I believe every
value (including "never" :-) is interpreted as "always".

J.Pietschmann

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


RE: Breaking between rows before breaking rows

Posted by "Andreas L. Delmelle" <a_...@pandora.be>.
> -----Original Message-----
> From: J.Pietschmann [mailto:j3322ptm@yahoo.de]
>

Hi Joerg,

> Andreas L. Delmelle wrote:
> > Try specifying: keep-together="always" on the table-rows.
>
> Using both keep-together="always" and keep-with-next="always"
> on all rows of a table longet than a page will send FOP into
> an infinite loop.

Just wondering: is this only the case when both properties have a value of
'always'? The OP seemed to be using a (low) integer value for
'keep-with-next', so I concluded --perhaps mistakenly so-- that there was no
risk of ending up with an infinite loop... since 'keep-together' would
always have higher priority than 'keep-with-next' (?)


Greetz,

Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: Breaking between rows before breaking rows

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Andreas L. Delmelle wrote:
> Try specifying: keep-together="always" on the table-rows.

Using both keep-together="always" and keep-with-next="always"
on all rows of a table longet than a page will send FOP into
an infinite loop.

J.Pietschmann

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


RE: Breaking between rows before breaking rows

Posted by "Andreas L. Delmelle" <a_...@pandora.be>.
> -----Original Message-----
> From: robert frapples [mailto:oyenstikker@gmail.com]
> 

Hi,

> I have a bunch of tables, each with a bunch of rows, each with some
> content.  I set keep-with-next="'1'" for each row, expecting it to
> page break between tables, which it does. . .
> for the most part.  If a single table is longer than one page, rather
> than breaking between rows, it breaks in the middle of a row.

Try specifying: keep-together="always" on the table-rows.

IIC:
- keep-with-* props define a relation between sibling FOs
- keep-together OTOH bears relevance to the FO descendants


HTH!

Greetz,

Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: Breaking between rows before breaking rows

Posted by JB...@s-s-t.com.
>From all that I have read (and tried myself), you've just hit FOP in its 
weakest spot. The only think I can suggest is to chunk your content such 
that a table never crosses a page boundary. Hopefully, the new effort on 
FOP (about which I know very little) will do better with keeps and breaks.

By the way, I love FOP for all that it lets me do, so I accept that it has 
a few limitations.

Jay Bryant
Bryant Communication Services



robert frapples <oy...@gmail.com> 
12/10/2004 11:50 AM
Please respond to
fop-user@xml.apache.org


To
fop-user@xml.apache.org
cc

Subject
Breaking between rows before breaking rows






I have a bunch of tables, each with a bunch of rows, each with some
content.  I set keep-with-next="'1'" for each row, expecting it to
page break between tables, which it does. . .

for the most part.  If a single table is longer than one page, rather
than breaking between rows, it breaks in the middle of a row.

Can I keep rows together when possible and break between tables AND
not break in the middle of a row?  Is there some trick to do this?

-Stephen

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org