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 raymond <ar...@schweiz.com> on 2002/10/28 14:13:00 UTC

different table-cell width

hello,
I will get different table-cell with different Width.

But, why this different codes have the same effekt in output:

Table 1:
<fo:table width="700pt" border="0pt solid black">
<fo:table-column column-number="1"/>
<fo:table-column column-number="2"/>
<fo:table-column column-number="3"/>
<fo:table-column column-number="4"/>
<fo:table-column column-number="5"/>
<fo:table-column column-number="6"/>
<fo:table-column column-number="7"/>
<fo:table-column column-number="8"/>
....

<fo:table-row>
<fo:table-cell width="100pt"><fo:block>
<xsl:value-of select="document/OBJ1" />
</fo:block> </fo:table-cell>

<fo:table-cell width="200pt"><fo:block><xsl:value-of select="document/TER1" />
</fo:block> </fo:table-cell>

<fo:table-cell width="100pt"><fo:block><xsl:value-of select="document/POS1" />
</fo:block> </fo:table-cell>

<fo:table-cell width="100pt">
<fo:block><xsl:value-of select="/document/TA"/>
</fo:block> </fo:table-cell>

<fo:table-cell width="100pt">
<fo:block><xsl:value-of select="/document/TEI"/>
</fo:block> </fo:table-cell>

<fo:table-cell width="100pt">
<fo:block><xsl:value-of select="/document/PRE"/>
</fo:block> </fo:table-cell>
</fo:table-row>

Table 2:
<fo:table width="700pt" border="0pt solid black">
<fo:table-column column-number="1"/>
<fo:table-column column-number="2"/>
<fo:table-column column-number="3"/>
<fo:table-column column-number="4"/>
<fo:table-column column-number="5"/>
<fo:table-column column-number="6"/>
<fo:table-column column-number="7"/>
<fo:table-column column-number="8"/>
.........

<fo:table-row>
<fo:table-cell width="10pt"><fo:block>
<xsl:value-of select="document/OBJ1" />
</fo:block> </fo:table-cell>

<fo:table-cell width="20pt"><fo:block><xsl:value-of select="document/TER1" />
</fo:block> </fo:table-cell>

<fo:table-cell width="10pt"><fo:block><xsl:value-of select="document/POS1" />
</fo:block> </fo:table-cell>

<fo:table-cell width="100pt">
<fo:block><xsl:value-of select="/document/TA"/>
</fo:block> </fo:table-cell>

<fo:table-cell width="100pt">
<fo:block><xsl:value-of select="/document/TEI"/>
</fo:block> </fo:table-cell>

<fo:table-cell width="100pt">
<fo:block><xsl:value-of select="/document/PRE"/>
</fo:block> </fo:table-cell>
</fo:table-row>



thanks 
 


Re: different table-cell width

Posted by "J.Pietschmann" <j3...@yahoo.de>.
raymond wrote:
> hello,
> I will get different table-cell with different Width.
> 
If you are using FOP, define the table columns width
in the fo:table-column:
   <fo:table-column column-number="1" column-width="100pt"/>
Don't define it on the cells.

I suggest to get someone to write messages in proper english.
There are limits on what can be guessed.

J.Pietschmann