xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Kovacs <a.kov...@i-docs.com>
Subject Re: AW: AW: Table with spanned-row-header in 2 columned region-body
Date Wed, 01 Sep 2010 14:59:10 GMT
Hi Georg,

 I would need the second table to start on the same page.... and of course also with TH1 header....

Thanks again!

Adam

> Hi Adam,
>  
> Markers are your friends in that case. Basically your header contains a marker area which
knows of an id. When the page is generated, the header looks for the next (or last, or first)
marker content in the page to pull into the area. You put your marker content at the end of
the table so the marker area always finds the correct content for the first table on the page.
This works perfectly.
>  
> Only problem: If your table ends on a page and a new table starts at the same page. In
that case the new table would miss its first TH1. If that’s the case for your pdf, I have
to forward you to the real experts.  Otherwise, I forward you to fo:marker and its documentation.
>  
> Regards,
>  
> Georg Datterl
>  
> ------ Kontakt ------
>  
> Georg Datterl
>  
> Geneon media solutions gmbh
> Gutenstetter Straße 8a
> 90449 Nürnberg
>  
> HRB Nürnberg: 17193
> Geschäftsführer: Yong-Harry Steiert
>  
> Tel.: 0911/36 78 88 - 26
> Fax: 0911/36 78 88 - 20
>  
> www.geneon.de
>  
> Weitere Mitglieder der Willmy MediaGroup:
>  
> IRS Integrated Realization Services GmbH:    www.irs-nbg.de
> Willmy PrintMedia GmbH:                            www.willmy.de
> Willmy Consult & Content GmbH:                 www.willmycc.de
>  
> Von: Adam Kovacs [mailto:a.kovacs@i-docs.com] 
> Gesendet: Mittwoch, 1. September 2010 16:23
> An: fop-users@xmlgraphics.apache.org
> Betreff: Re: AW: Table with spanned-row-header in 2 columned region-body
>  
> Hi Georg!
>  
> Thanks for your answer... Im exactly looking after workaround-ideas like this!
>  
> The problem is that I have lets say 3 Tables with the same content type but exactly this
"spanned" header different..
> I dont know how long these tables are.
> It can happen that the 1. table is 3 pages the 2. is 2 pages and the 3. is 20 pages...
> (Imagine it like Tables: "Videos" "Photos" "Music" and content like "title" "author"
"date")
>  
> So I think the page-header is no option.
> Or is there a way to set it dynamically?
>  
> Thanks!!
>  
> Adam 
>  
> On 01.09.2010, at 16:00, Georg Datterl wrote:
> 
> 
> Hi Adam,
>  
> I don’t think that’s possible, because logically your table has only one column and
therefore the TH1 could only span one column. But: What if you put the TH1 into the page header
and let it span there?
>  
> Regards,
>  
> Georg Datterl
>  
> ------ Kontakt ------
>  
> Georg Datterl
>  
> Geneon media solutions gmbh
> Gutenstetter Straße 8a
> 90449 Nürnberg
>  
> HRB Nürnberg: 17193
> Geschäftsführer: Yong-Harry Steiert
>  
> Tel.: 0911/36 78 88 - 26
> Fax: 0911/36 78 88 - 20
>  
> www.geneon.de
>  
> Weitere Mitglieder der Willmy MediaGroup:
>  
> IRS Integrated Realization Services GmbH:    www.irs-nbg.de
> Willmy PrintMedia GmbH:                            www.willmy.de
> Willmy Consult & Content GmbH:                 www.willmycc.de
>  
> Von: Adam Kovacs [mailto:a.kovacs@i-docs.com] 
> Gesendet: Mittwoch, 1. September 2010 15:57
> An: fop-users@xmlgraphics.apache.org
> Betreff: Table with spanned-row-header in 2 columned region-body
>  
> Hi There!
>  
>  Im trying to make a table with a spanned header in a 2 columned region-body.
> (Examples attached....)
> I would need something like a "span=all" into the table-header... like this:
>  
>             <fo:region-body region-name="PageBody" column-count="2"/>
>  
>         <fo:table>
>                         <fo:table-column>
>                         <fo:table-column>
>                 <fo:table-header >
>                                    <fo:table-row span="all">
>                                <fo:table-cell number-columns-spanned="2">
>                                    <fo:block> T1H1</fo:block>
>                                </fo:table-cell>
>                                    </fo:table-row>
>                                    <fo:table-row>
>                                <fo:table-cell>
>                                    <fo:block> T1H2C1</fo:block>
>                                </fo:table-cell>
>                                <fo:table-cell>
>                                    <fo:block> T1H2C2</fo:block>
>                                </fo:table-cell>
>                            </fo:table-row>
>                 </fo:table-header>
>                 <fo:table-body >
>  
>  
> It should look like this:
>  
> "_______Table Header 1______"
> "TableHeader2"    "TableHeader2"
> "ContentRow _"    "ContentRow _"
> "ContentRow _"    "ContentRow _"
> "ContentRow _"    "ContentRow _"
> ...
>  
> -Page Break-
>  
> "_______Table Header 1______"
> "TableHeader2"    "TableHeader2"
> "ContentRow _"    "ContentRow _"
> "ContentRow _"    "ContentRow _"
> "ContentRow _"    "ContentRow _"
>  
> Any idea how to do this is really appreciated!!!
> Thanks!
>  
> Attached is an example XSL/FO and PDF what I would need... (the blue one is the desired
one just also over page breaks....)
>  
>  


Mime
View raw message