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 Patrick Andries <pa...@videotron.ca> on 2002/04/19 02:14:13 UTC
2 coliumns * 4 columns table
I need to implement tables that seem to me to be difficult (or
impossible) to render with XSL FO.
The difficulty involves a table made of two columns (left/right)
themselves divided into 4 further columns (a,b,c,d). The content should
flows from the left four columns (a,b,c,d) on a page to the right four
columns (a,b,c,d) of the same page before going on to the next pages,
themselves divided in the same way. The page header on the next pages is
slightly different from the one found on the first page containing the
table.
Is this possible with your XEP ? Could you give me an rough idea how to
implement it and test it ?
P. Andries
Re: 2 coliumns * 4 columns table
Posted by Patrick Andries <pa...@videotron.ca>.
Yes good idea.
J.Pietschmann wrote:
> Patrick Andries wrote:
>
>> I'm not sure that declaring 2 columns in the region-body can help me
>> on the first page, since it is preceded by single-column text (of
>> arbitrary length) before the table split into 2 * 4 columns appears.
>
>
> You can put the text in a block and use span="all"
> http://www.w3.org/TR/xsl/slice7.html#span
>
> J.Pietschmann
>
>
>
Re: 2 coliumns * 4 columns table
Posted by "J.Pietschmann" <j3...@yahoo.de>.
Patrick Andries wrote:
> I'm not sure that declaring 2 columns in the region-body can help me on
> the first page, since it is preceded by single-column text (of arbitrary
> length) before the table split into 2 * 4 columns appears.
You can put the text in a block and use span="all"
http://www.w3.org/TR/xsl/slice7.html#span
J.Pietschmann
Re: 2 coliumns * 4 columns table
Posted by Patrick Andries <pa...@videotron.ca>.
J.Pietschmann wrote:
> Patrick Andries wrote:
>
>> The difficulty involves a table made of two columns (left/right)
>> themselves divided into 4 further columns (a,b,c,d). The content
>> should flows from the left four columns (a,b,c,d) on a page to the
>> right four columns (a,b,c,d) of the same page before going on to the
>> next pages, themselves divided in the same way. The page header on
>> the next pages is slightly different from the one found on the first
>> page containing the table.
>>
>> Is this possible with your XEP ?
>
>
> This is the FOP list.
Oops. Sorry! This is actually a FO theoretical question.
>> Could you give me an rough idea how to implement it and test it ?
>
> You have to explicit assign the text to the columns in tables.
Hmm. This is not obvious if I do not know how many lines precede the
table on the first page.
>
> You can try to use columns in the region-body
> <fo:region-body column-count="2"/>
> If you can use this, you can probably also use static content
> in the region-before for your slightly different headers.
Yes, this is a good idea, for the headers this could make sense : 1st
page table headers are actually table headers (they could occur
somewhere in the middle of the 1st page), next page table headers are
actually in the region-before and the table headers are not repeated.
I'm not sure that declaring 2 columns in the region-body can help me on
the first page, since it is preceded by single-column text (of arbitrary
length) before the table split into 2 * 4 columns appears.
Patrick
Re: 2 coliumns * 4 columns table
Posted by "J.Pietschmann" <j3...@yahoo.de>.
Patrick Andries wrote:
> The difficulty involves a table made of two columns (left/right)
> themselves divided into 4 further columns (a,b,c,d). The content should
> flows from the left four columns (a,b,c,d) on a page to the right four
> columns (a,b,c,d) of the same page before going on to the next pages,
> themselves divided in the same way. The page header on the next pages is
> slightly different from the one found on the first page containing the
> table.
>
> Is this possible with your XEP ?
This is the FOP list.
> Could you give me an rough idea how to
> implement it and test it ?
You have to explicit assign the text to the columns in tables.
You can try to use columns in the region-body
<fo:region-body column-count="2"/>
If you can use this, you can probably also use static content
in the region-before for your slightly different headers.
J.Pietschmann