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 David Kim <xm...@yahoo.ca> on 2005/05/31 15:29:36 UTC
table-row and sub table-rows problem
Hi all,
I want to use second table-row's format as sub
table-row.
I defined two rows with different format.
row1's format is defined in fo:table, it is same
level with table-body or table-header.
<fo:table-column column-width="0.3cm" />
<fo:table-column column-width="3.cm" />
<fo:table-column column-width="3.cm" />
<fo:table-column column-width="3.cm" />
<fo:table-column column-width="3.cm" />
ow2's format is defiened under
o:table>fo:table-header>fo:table-row>fo:table-cell>fo:table,..
<fo:table-column column-width="0.2cm" />
<fo:table-column column-width="2cm" />
<fo:table-column column-width="2cm" />
<fo:table-column column-width="2cm" />
data.xml is like follow:-
<result>
<NAME>PAUL3</NAME>
<REGION>NS</REGION>
<SALARY>9878787</SALARY>
<BONUS>1111</BONUS>
<SUB>
<REPEAT>
<SUB1>1111</SUB1>
<SUB2>2222</SUB2>
<SUB3>3333</SUB3>
</REPEAT>
............
:--
Title row of table(-row) is working. But I can't use
second table-row format in 'template'.
'REPEAT' data displayed with row1's format.
How can I use it (with second table-row's format)?
Thanks
David-Toronto-
______________________________________________________________________
Post your free ad now! http://personals.yahoo.ca
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: table-row and sub table-rows problem
Posted by Mike Trotman <mi...@datalucid.com>.
I'm not sure if I understand your question correctly
(as the xls:fo is chopped / incomplete at crucial points and you don't
show your XSLT)
If you are asking - 'How can I have different column widths for the same
column within the same table'
then you can't (uniform columns is what makes it a table).
You have to use separate tables
OR
specify more columns than you display and combine them differently in
different rows
(using <fo:table-cell number-columns-spanned='..'>...</fo:table-cell>).
which lets you align specific column boundaries
e.g (gross overkill but I don't want to work out the minimum required
for your example:
- each column width is 0.1cm
and you group 3,30,30,
and then 2,20,20 etc.)
OR (which may be what you are attempting)
have a table cell spanning the whole row and put another table inside
that cell
(which makes it hard to align column boundaries).
HTH
Mike
David Kim wrote:
>Hi all,
>I want to use second table-row's format as sub
>table-row.
>
>I defined two rows with different format.
>
>row1's format is defined in fo:table, it is same
>level with table-body or table-header.
> <fo:table-column column-width="0.3cm" />
> <fo:table-column column-width="3.cm" />
> <fo:table-column column-width="3.cm" />
> <fo:table-column column-width="3.cm" />
> <fo:table-column column-width="3.cm" />
>
>
>ow2's format is defiened under
>o:table>fo:table-header>fo:table-row>fo:table-cell>fo:table,..
> <fo:table-column column-width="0.2cm" />
> <fo:table-column column-width="2cm" />
> <fo:table-column column-width="2cm" />
> <fo:table-column column-width="2cm" />
>
>
>data.xml is like follow:-
> <result>
> <NAME>PAUL3</NAME>
> <REGION>NS</REGION>
> <SALARY>9878787</SALARY>
> <BONUS>1111</BONUS>
> <SUB>
> <REPEAT>
> <SUB1>1111</SUB1>
> <SUB2>2222</SUB2>
> <SUB3>3333</SUB3>
> </REPEAT>
> ............
>:--
>
>Title row of table(-row) is working. But I can't use
>second table-row format in 'template'.
> 'REPEAT' data displayed with row1's format.
>
>How can I use it (with second table-row's format)?
>Thanks
>
>David-Toronto-
>
>
>
>______________________________________________________________________
>Post your free ad now! http://personals.yahoo.ca
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
>Message Scanned by ClamAV on datalucid.com
>
>
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 267.3.0 - Release Date: 30/05/2005
Message Scanned by ClamAV on datalucid.com
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org