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 sascha <sa...@assbach.de> on 2002/07/22 16:22:49 UTC

nested tables with % widths

Hi,

I have a problem transforming nested Tables with % values for column widths.

I tried to calculate the % values to cm values, saying 100% is 17cm and so
on...

This Input comes from Lotus Notes exports.
Is there a way to transform those tables?

the input:

<table widthtype="fitmargins">
    <tablecolumn width="50%"/>
    <tablecolumn width="50%"/>

    <tablerow>
     <tablecell>....</tablecell>
     <tablecell bgcolor="#f1f180">....</tablecell>
    </tablerow>

    <tablerow>
     <tablecell columnspan="2">....</tablecell>
    </tablerow>


    <tablerow>
     <tablecell>
<!-- ************* NESTED TABLE HERE ************** //-->

      <table widthtype="fitmargins" leftmargin="0.0104in">
       <tablecolumn width="50%"/>
       <tablecolumn width="50%"/>
       <tablerow>
        <tablecell>...        </tablecell>
        <tablecell>...</tablecell>
       </tablerow>
        </table>

</tablecell>
    </tablerow>
   </table>




Thanks
Sascha.


Re: nested tables with % widths

Posted by sascha <sa...@assbach.de>.
that seems even better and more explaining,

thank you.
sascha

----- Original Message -----
From: "Harm Kok" <h....@diderottrack.nl>
To: <fo...@xml.apache.org>
Sent: Monday, July 22, 2002 4:47 PM
Subject: Re: nested tables with % widths


> Sorry, was not to clear about it. Example that works for me:
> <fo:table table-layout="fixed" width="100%">
> <fo:table-column column-number="1"
> column-width="proportional-column-width(3)"/>
> <fo:table-column column-number="2"
> column-width="proportional-column-width(3)"/>
> <fo:table-column column-number="3"
> column-width="proportional-column-width(3)"/>
> <fo:table-body>
> <fo:table-row>
> <fo:table-cell text-align="left" display-align="before">
> <fo:block>....
>
> Hope this helps,
>
> Harm
>
> sascha wrote:
>
> >HI,
> >
> >thanks for the hint but how?
> >as a value? any references ? any example?
> >
> >Sascha
> >
> >
> >
> >----- Original Message -----
> >From: "Harm Kok" <h....@diderottrack.nl>
> >To: <fo...@xml.apache.org>
> >Sent: Monday, July 22, 2002 4:31 PM
> >Subject: Re: nested tables with % widths
> >
> >
> >
> >
> >>If you put: proportional-column-width(50) in the width field it will
work.
> >>
> >>Harm Kok
> >>
> >>Diderot Track
> >>
> >>
> >>sascha wrote:
> >>
> >>
> >>
> >>>Hi,
> >>>
> >>>I have a problem transforming nested Tables with % values for column
> >>>
> >>>
> >widths.
> >
> >
> >>>I tried to calculate the % values to cm values, saying 100% is 17cm and
> >>>
> >>>
> >so
> >
> >
> >>>on...
> >>>
> >>>This Input comes from Lotus Notes exports.
> >>>Is there a way to transform those tables?
> >>>
> >>>the input:
> >>>
> >>><table widthtype="fitmargins">
> >>>   <tablecolumn width="50%"/>
> >>>   <tablecolumn width="50%"/>
> >>>
> >>>   <tablerow>
> >>>    <tablecell>....</tablecell>
> >>>    <tablecell bgcolor="#f1f180">....</tablecell>
> >>>   </tablerow>
> >>>
> >>>   <tablerow>
> >>>    <tablecell columnspan="2">....</tablecell>
> >>>   </tablerow>
> >>>
> >>>
> >>>   <tablerow>
> >>>    <tablecell>
> >>><!-- ************* NESTED TABLE HERE ************** //-->
> >>>
> >>>     <table widthtype="fitmargins" leftmargin="0.0104in">
> >>>      <tablecolumn width="50%"/>
> >>>      <tablecolumn width="50%"/>
> >>>      <tablerow>
> >>>       <tablecell>...        </tablecell>
> >>>       <tablecell>...</tablecell>
> >>>      </tablerow>
> >>>       </table>
> >>>
> >>></tablecell>
> >>>   </tablerow>
> >>>  </table>
> >>>
> >>>
> >>>
> >>>
> >>>Thanks
> >>>Sascha.
> >>>
> >>>
> >>>
> >>>
> >>
> >>
> >>
> >>
>
>
>
>


Re: nested tables with % widths

Posted by Harm Kok <h....@diderottrack.nl>.
Sorry, was not to clear about it. Example that works for me:
<fo:table table-layout="fixed" width="100%">
<fo:table-column column-number="1" 
column-width="proportional-column-width(3)"/>
<fo:table-column column-number="2" 
column-width="proportional-column-width(3)"/>
<fo:table-column column-number="3" 
column-width="proportional-column-width(3)"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell text-align="left" display-align="before">
<fo:block>....

Hope this helps,

Harm

sascha wrote:

>HI,
>
>thanks for the hint but how?
>as a value? any references ? any example?
>
>Sascha
>
>
>
>----- Original Message -----
>From: "Harm Kok" <h....@diderottrack.nl>
>To: <fo...@xml.apache.org>
>Sent: Monday, July 22, 2002 4:31 PM
>Subject: Re: nested tables with % widths
>
>
>  
>
>>If you put: proportional-column-width(50) in the width field it will work.
>>
>>Harm Kok
>>
>>Diderot Track
>>
>>
>>sascha wrote:
>>
>>    
>>
>>>Hi,
>>>
>>>I have a problem transforming nested Tables with % values for column
>>>      
>>>
>widths.
>  
>
>>>I tried to calculate the % values to cm values, saying 100% is 17cm and
>>>      
>>>
>so
>  
>
>>>on...
>>>
>>>This Input comes from Lotus Notes exports.
>>>Is there a way to transform those tables?
>>>
>>>the input:
>>>
>>><table widthtype="fitmargins">
>>>   <tablecolumn width="50%"/>
>>>   <tablecolumn width="50%"/>
>>>
>>>   <tablerow>
>>>    <tablecell>....</tablecell>
>>>    <tablecell bgcolor="#f1f180">....</tablecell>
>>>   </tablerow>
>>>
>>>   <tablerow>
>>>    <tablecell columnspan="2">....</tablecell>
>>>   </tablerow>
>>>
>>>
>>>   <tablerow>
>>>    <tablecell>
>>><!-- ************* NESTED TABLE HERE ************** //-->
>>>
>>>     <table widthtype="fitmargins" leftmargin="0.0104in">
>>>      <tablecolumn width="50%"/>
>>>      <tablecolumn width="50%"/>
>>>      <tablerow>
>>>       <tablecell>...        </tablecell>
>>>       <tablecell>...</tablecell>
>>>      </tablerow>
>>>       </table>
>>>
>>></tablecell>
>>>   </tablerow>
>>>  </table>
>>>
>>>
>>>
>>>
>>>Thanks
>>>Sascha.
>>>
>>>
>>>      
>>>
>>
>>
>>    
>>




Re: nested tables with % widths

Posted by sascha <sa...@assbach.de>.
ok i got it
<fo:table-column column-width="proportional-column-width(50%)"/>

right?

thank you very much!

sascha

----- Original Message -----
From: "sascha" <sa...@assbach.de>
To: <fo...@xml.apache.org>
Sent: Monday, July 22, 2002 4:43 PM
Subject: Re: nested tables with % widths


> HI,
>
> thanks for the hint but how?
> as a value? any references ? any example?
>
> Sascha
>
>
>
> ----- Original Message -----
> From: "Harm Kok" <h....@diderottrack.nl>
> To: <fo...@xml.apache.org>
> Sent: Monday, July 22, 2002 4:31 PM
> Subject: Re: nested tables with % widths
>
>
> > If you put: proportional-column-width(50) in the width field it will
work.
> >
> > Harm Kok
> >
> > Diderot Track
> >
> >
> > sascha wrote:
> >
> > >Hi,
> > >
> > >I have a problem transforming nested Tables with % values for column
> widths.
> > >
> > >I tried to calculate the % values to cm values, saying 100% is 17cm and
> so
> > >on...
> > >
> > >This Input comes from Lotus Notes exports.
> > >Is there a way to transform those tables?
> > >
> > >the input:
> > >
> > ><table widthtype="fitmargins">
> > >    <tablecolumn width="50%"/>
> > >    <tablecolumn width="50%"/>
> > >
> > >    <tablerow>
> > >     <tablecell>....</tablecell>
> > >     <tablecell bgcolor="#f1f180">....</tablecell>
> > >    </tablerow>
> > >
> > >    <tablerow>
> > >     <tablecell columnspan="2">....</tablecell>
> > >    </tablerow>
> > >
> > >
> > >    <tablerow>
> > >     <tablecell>
> > ><!-- ************* NESTED TABLE HERE ************** //-->
> > >
> > >      <table widthtype="fitmargins" leftmargin="0.0104in">
> > >       <tablecolumn width="50%"/>
> > >       <tablecolumn width="50%"/>
> > >       <tablerow>
> > >        <tablecell>...        </tablecell>
> > >        <tablecell>...</tablecell>
> > >       </tablerow>
> > >        </table>
> > >
> > ></tablecell>
> > >    </tablerow>
> > >   </table>
> > >
> > >
> > >
> > >
> > >Thanks
> > >Sascha.
> > >
> > >
> >
> >
> >
> >
>


Re: nested tables with % widths

Posted by sascha <sa...@assbach.de>.
HI,

thanks for the hint but how?
as a value? any references ? any example?

Sascha



----- Original Message -----
From: "Harm Kok" <h....@diderottrack.nl>
To: <fo...@xml.apache.org>
Sent: Monday, July 22, 2002 4:31 PM
Subject: Re: nested tables with % widths


> If you put: proportional-column-width(50) in the width field it will work.
>
> Harm Kok
>
> Diderot Track
>
>
> sascha wrote:
>
> >Hi,
> >
> >I have a problem transforming nested Tables with % values for column
widths.
> >
> >I tried to calculate the % values to cm values, saying 100% is 17cm and
so
> >on...
> >
> >This Input comes from Lotus Notes exports.
> >Is there a way to transform those tables?
> >
> >the input:
> >
> ><table widthtype="fitmargins">
> >    <tablecolumn width="50%"/>
> >    <tablecolumn width="50%"/>
> >
> >    <tablerow>
> >     <tablecell>....</tablecell>
> >     <tablecell bgcolor="#f1f180">....</tablecell>
> >    </tablerow>
> >
> >    <tablerow>
> >     <tablecell columnspan="2">....</tablecell>
> >    </tablerow>
> >
> >
> >    <tablerow>
> >     <tablecell>
> ><!-- ************* NESTED TABLE HERE ************** //-->
> >
> >      <table widthtype="fitmargins" leftmargin="0.0104in">
> >       <tablecolumn width="50%"/>
> >       <tablecolumn width="50%"/>
> >       <tablerow>
> >        <tablecell>...        </tablecell>
> >        <tablecell>...</tablecell>
> >       </tablerow>
> >        </table>
> >
> ></tablecell>
> >    </tablerow>
> >   </table>
> >
> >
> >
> >
> >Thanks
> >Sascha.
> >
> >
>
>
>
>


Re: nested tables with % widths

Posted by Harm Kok <h....@diderottrack.nl>.
If you put: proportional-column-width(50) in the width field it will work.

Harm Kok

Diderot Track


sascha wrote:

>Hi,
>
>I have a problem transforming nested Tables with % values for column widths.
>
>I tried to calculate the % values to cm values, saying 100% is 17cm and so
>on...
>
>This Input comes from Lotus Notes exports.
>Is there a way to transform those tables?
>
>the input:
>
><table widthtype="fitmargins">
>    <tablecolumn width="50%"/>
>    <tablecolumn width="50%"/>
>
>    <tablerow>
>     <tablecell>....</tablecell>
>     <tablecell bgcolor="#f1f180">....</tablecell>
>    </tablerow>
>
>    <tablerow>
>     <tablecell columnspan="2">....</tablecell>
>    </tablerow>
>
>
>    <tablerow>
>     <tablecell>
><!-- ************* NESTED TABLE HERE ************** //-->
>
>      <table widthtype="fitmargins" leftmargin="0.0104in">
>       <tablecolumn width="50%"/>
>       <tablecolumn width="50%"/>
>       <tablerow>
>        <tablecell>...        </tablecell>
>        <tablecell>...</tablecell>
>       </tablerow>
>        </table>
>
></tablecell>
>    </tablerow>
>   </table>
>
>
>
>
>Thanks
>Sascha.
>  
>