Two successive columns in a table -- problem with the page-break

2007-11-13 Thread jorgito

Hi,

I am encountered with the following problem, would be great if anyone has an
idea how to solve it.
The table to be desplayed in my pdf looks like this:

year |   name   || year |   name
===
2007Tom2011 Nick
2008Brenda2012  Carl
2009Andy   2013 Emmi
2010Mitch

and so on. I don't know the length of the table (number of years, there may
be 50 or so)) and I don't know the position on the page where the table
starts because the PDF consists of dynamic content.
If there ist a page-break I would like to have this:

year |   name   || year |   name
===
2007Tom2009 Andy 
2008Brenda2010  Mitch
- page break --
2011Nick   2013  Emmi
2012Carl

But, maybe needless to say, I get this:

year |   name   || year |   name
===
2007Tom2011 Nick
2008Brenda2012  Carl
-page break--
2009Andy  2013  Emmi
2010Mitch

I was searching for getting to know my current position on a page, so that I
can split the table into two. But obviously there is no way for that. Any
other ideas?

jorgito
-- 
View this message in context: 
http://www.nabble.com/Two-successive-columns-in-a-table---%3E-problem-with-the-page-break-tf4797601.html#a13725292
Sent from the FOP - Users mailing list archive at Nabble.com.


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



RE: Two successive columns in a table -- problem with the page-break

2007-11-13 Thread Winterflood, Jonathan

Hi,

Maybe you could use a two-column page, and a table with only two columns.

So you should get:
Year | name : 2010  Mitch 
=== : 2011  Nick 
2007  Tom   : 2012  Carl 
2008  Brenda: 2013  Emmi
2009  Andy  :

You might also want to ask the headers to repeat on a break.

So you should get:
Year | name : Year | name 
=== : === 
2007  Tom   : 2011  Nick
2008  Brenda: 2012  Carl
2009  Andy  : 2013  Emmi
2010  Mitch :

On a page-break, the data would first fill both columns on page 1, then the 
second page would also have two columns (if necessary), repeated headers, etc.

Problems:
* I believe you can use multiple columns inside a page, although I don't know 
how...
* Also, I'm not sure you can change the number of columns, within the same page.

OTOH, it's standard practice (just pick up a newspaper), so I expect both to be 
possible.

HTH,

Jonathan

-Message d'origine-
De : jorgito [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 13 novembre 2007 13:59
À : fop-users@xmlgraphics.apache.org
Objet : Two successive columns in a table -- problem with the page-break


Hi,

I am encountered with the following problem, would be great if anyone has an
idea how to solve it.
The table to be desplayed in my pdf looks like this:

year |   name   || year |   name
===
2007Tom2011 Nick
2008Brenda2012  Carl
2009Andy   2013 Emmi
2010Mitch

and so on. I don't know the length of the table (number of years, there may
be 50 or so)) and I don't know the position on the page where the table
starts because the PDF consists of dynamic content.
If there ist a page-break I would like to have this:

year |   name   || year |   name
===
2007Tom2009 Andy 
2008Brenda2010  Mitch
- page break --
2011Nick   2013  Emmi
2012Carl

But, maybe needless to say, I get this:

year |   name   || year |   name
===
2007Tom2011 Nick
2008Brenda2012  Carl
-page break--
2009Andy  2013  Emmi
2010Mitch

I was searching for getting to know my current position on a page, so that I
can split the table into two. But obviously there is no way for that. Any
other ideas?

jorgito
-- 
View this message in context: 
http://www.nabble.com/Two-successive-columns-in-a-table---%3E-problem-with-the-page-break-tf4797601.html#a13725292
Sent from the FOP - Users mailing list archive at Nabble.com.


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


This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


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



RE: Two successive columns in a table -- problem with the page-break

2007-11-13 Thread jorgito

Thanks!
So far I can't see solutions to these two problems, but will try to find
them.
column-count is an attribute of region-body, I don't know how to change this
inside a page.
jorgito


Winterflood, Jonathan wrote:
 
 
 
 Problems:
 * I believe you can use multiple columns inside a page, although I don't
 know how...
 * Also, I'm not sure you can change the number of columns, within the same
 page.
 
 OTOH, it's standard practice (just pick up a newspaper), so I expect both
 to be possible.
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Two-successive-columns-in-a-table---%3E-problem-with-the-page-break-tf4797601.html#a13729100
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Re: Two successive columns in a table -- problem with the page-break

2007-11-13 Thread Andreas L Delmelle

On Nov 13, 2007, at 17:10, jorgito wrote:



Thanks!
So far I can't see solutions to these two problems, but will try to  
find

them.
column-count is an attribute of region-body, I don't know how to  
change this

inside a page.


You can't change the column-count mid-page, but you can make  
exceptions for certain fo:blocks, by using span=all.


[OP:]
---
If there ist a page-break I would like to have this:

year |   name   || year |   name
===
2007Tom2009 Andy
2008Brenda2010  Mitch
- page break --
2011Nick   2013  Emmi
2012Carl

But, maybe needless to say, I get this:

year |   name   || year |   name
===
2007Tom2011 Nick
2008Brenda2012  Carl
-page break--
2009Andy  2013  Emmi
2010Mitch
---

This result does not seem correct to me. I can't say for sure,  
though, but it looks a bit 'off'. As though the column-break is  
computed /after/ the page-break..?



Anyone?

Cheers

Andreas


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



Re: Two successive columns in a table -- problem with the page-break

2007-11-13 Thread jorgito



Andreas L Delmelle wrote:
 
 
 [OP:]
 ---
 If there ist a page-break I would like to have this:
 
 year |   name   || year |   name
 ===
 2007Tom2009 Andy
 2008Brenda2010  Mitch
 - page break --
 2011Nick   2013  Emmi
 2012Carl
 
 But, maybe needless to say, I get this:
 
 year |   name   || year |   name
 ===
 2007Tom2011 Nick
 2008Brenda2012  Carl
 -page break--
 2009Andy  2013  Emmi
 2010Mitch
 ---
 
 This result does not seem correct to me. I can't say for sure,  
 though, but it looks a bit 'off'. As though the column-break is  
 computed /after/ the page-break..?
 
 

So far I don't really have a column-break but a single table with 4 columns.
I am iterating from 1 to (n + n mod 2) div 2 and writing in row m: year m
and year  m + (n + n mod 2) div 2.  So the page-break is not done by me.

Any ideas?
-- 
View this message in context: 
http://www.nabble.com/Two-successive-columns-in-a-table---%3E-problem-with-the-page-break-tf4797601.html#a13735403
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Re: Two successive columns in a table -- problem with the page-break

2007-11-13 Thread Andreas L Delmelle

On Nov 13, 2007, at 22:52, jorgito wrote:



snip /
So far I don't really have a column-break but a single table with 4  
columns.
I am iterating from 1 to (n + n mod 2) div 2 and writing in row m:  
year m
and year  m + (n + n mod 2) div 2.  So the page-break is not done  
by me.


I see. In that case, the output is precisely as I'd expect.


Any ideas?


Seems like a tough nut to crack in pure XSL-FO, at first glance...
What you seem to need is the possibility to have a fo:block-container  
with a given maximum-height that spans all columns, and a descendant  
two-column table that flows over two region-columns, but this is not  
possible. Either the block-container spans all columns, and the table  
does too, or vice versa.



Cheers

Andreas

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



Re: Two successive columns in a table -- problem with the page-break

2007-11-13 Thread Andreas L Delmelle

On Nov 14, 2007, at 00:20, Andreas L Delmelle wrote:


snip /

Any ideas?


Seems like a tough nut to crack in pure XSL-FO, at first glance...
What you seem to need is the possibility to have a fo:block- 
container with a given maximum-height that spans all columns, and a  
descendant two-column table that flows over two region-columns, but  
this is not possible. Either the block-container spans all columns,  
and the table does too, or vice versa.


Come to think of it: this could turn out to be a piece of cake, if  
only we had an XHTML plugin for fo:instream-foreign-object...


Ideas? Plenty :-)

Cheers

Andreas


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