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 Olivier Rossel <ol...@anyware-tech.com> on 2002/03/01 15:56:00 UTC
Drawing a line at bottom of a table-row
I have a 3 cells in a row in a table.
I wish to draw a line at the bottom of the row.
I tried <table-row border-bottom="1pt solid black">
but it didn't work.
Is it a FO normal behaviour?
If i i use <fo:table-cell border-bottom="1pt solid black">,
it is okay.
But if one of my cell is empty, the bottom-line is REALLY misplaced.
Using the attribute 'empty-cells="show"' at the declaration of the table
makes the
thing better, the line is almost at the same level with the
bottom-border of the
non-empty cells.
Here is the code i use:
<fo:table-row>
<fo:table-cell>
<fo:block font-size="12pt" space-before.optimum="12pt"
text-align="center" border-bottom="0.5mm solid black">Project:
<xsl:apply-templates select="h_table/param[@name='h1']"/></fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block font-size="12pt" space-before.optimum="12pt"
text-align="center" border-bottom="0.5mm solid black">AC/Series:
<xsl:apply-templates select="h_table/param[@name='h2']"/></fo:block>
</fo:table-cell>
<fo:table-cell number-columns-spanned="3">
<fo:block font-size="12pt" space-before.optimum="12pt"
text-align="center" border-bottom="0.5mm solid black">AC/Models:
<xsl:apply-templates select="h_table/param[@name='h3']"/></fo:block>
</fo:table-cell>
<fo:table-cell number-columns-spanned="3" border-bottom="0.5mm solid
black">
</fo:table-cell>
</fo:table-row>
And the result can be seen at:
http://www.anyware-tech.com/test.pdf
Anyone ever had this problem?
Re: Drawing a line at bottom of a table-row
Posted by Chuck Paussa <Ch...@systems.dhl.com>.
Olivier,
You were trying to match a table cell border with a fo:block border that
sits in a cell
Try the attached code
Chuck Paussa
Olivier Rossel wrote:
> I have a 3 cells in a row in a table.
> I wish to draw a line at the bottom of the row.
> I tried <table-row border-bottom="1pt solid black">
> but it didn't work.
> Is it a FO normal behaviour?
>
> If i i use <fo:table-cell border-bottom="1pt solid black">,
> it is okay.
>
> But if one of my cell is empty, the bottom-line is REALLY misplaced.
> Using the attribute 'empty-cells="show"' at the declaration of the
> table makes the
> thing better, the line is almost at the same level with the
> bottom-border of the
> non-empty cells.
>
> Here is the code i use:
>
> <fo:table-row>
> <fo:table-cell>
> <fo:block font-size="12pt" space-before.optimum="12pt"
> text-align="center" border-bottom="0.5mm solid black">Project:
> <xsl:apply-templates select="h_table/param[@name='h1']"/></fo:block>
> </fo:table-cell>
> <fo:table-cell>
> <fo:block font-size="12pt" space-before.optimum="12pt"
> text-align="center" border-bottom="0.5mm solid black">AC/Series:
> <xsl:apply-templates select="h_table/param[@name='h2']"/></fo:block>
> </fo:table-cell>
> <fo:table-cell number-columns-spanned="3">
> <fo:block font-size="12pt" space-before.optimum="12pt"
> text-align="center" border-bottom="0.5mm solid black">AC/Models:
> <xsl:apply-templates select="h_table/param[@name='h3']"/></fo:block>
> </fo:table-cell>
> <fo:table-cell number-columns-spanned="3" border-bottom="0.5mm
> solid black"> </fo:table-cell>
> </fo:table-row>
>
> And the result can be seen at:
> http://www.anyware-tech.com/test.pdf
>
> Anyone ever had this problem?
>