Pascal Sancho skrev:
Hi AT,
In FOP 0.20.5, vertical alignment is only supported on
fo:table-row/fo:table-cell.
Il you want to display a part of a fo:table-cell content at the bottom of your
cell, you have to embed a new fo:table with 2 fo:table-row in your initial
fo:table-row.
Then give an explicit height on your 2 fo:table-row, and specify the
display-align property (either to fo:table-row, or to fo:table-cell).
display-align usual values can be "before", "center", or "after".
HTH,
Pascal
-----Message d'origine-----
De : Asbjørn Thorsen [mailto:[EMAIL PROTECTED]
Envoyé : lundi 5 février 2007 13:53
À : fop-users@xmlgraphics.apache.org
Objet : Problem aligning a text at the bottom of a cell
I use FOP 0.25 and wonder how I can align a text to the
bottom of a cell ? Check out the source-code under where I'
d like the email address to be at the bottom of the cell:
snip
.
.
<fo:table table-layout="fixed" space-before="4mm">
<fo:table-column column-number="1" column-width="90mm"/>
<fo:table-column column-number="2" column-width="5.9mm"/>
<fo:table-column column-number="3" column-width="31mm"/>
<fo:table-column column-number="4" column-width=" 5.9mm"/>
<fo:table-column column-number="5" column-width="31mm"/>
<fo:table-body>
<!-- Row1 -->
<fo:table-row>
<fo:table-cell height="47.4mm" column-number="1"
border="solid 1px" number-rows-spanned="4">
<fo:block >
<xsl:value-of select="formular/mottakerinfo/navn"/>
</fo:block>
<fo:block >
<xsl:value-of
select="formular/mottakerinfo/adresselinje1"/>
</fo:block>
<fo:block >
<xsl:value-of
select="formular/mottakerinfo/adresselinje2"/>
</fo:block>
<fo:block >
<xsl:value-of
select="formular/mottakerinfo/adressested"/>
</fo:block>
<fo:block >
<xsl:value-of
select="formular/mottakerinfo/adresseland"/>
</fo:block>
<fo:block display-align="bottom">
<xsl:value-of
select="formular/mottakerinfo/epostadresse"/>
</fo:block>
</fo:table-cell>
.
.
snip
Asbjørn
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Thanx.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]