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/[EMAIL PROTECTED]'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/[EMAIL PROTECTED]'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/[EMAIL PROTECTED]'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?



<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>
	<fo:layout-master-set>
		<fo:simple-page-master master-name="simplet" page-width="240mm" margin-top="1in" margin-right="1in" margin-left="1in" margin-bottom="1in">
			<fo:region-body/>
		</fo:simple-page-master>
	</fo:layout-master-set>
	<fo:page-sequence master-reference="simplet">
		<fo:flow flow-name="xsl-region-body">
				<fo:block hyphenate="true" language="en">
					<fo:table padding="2pt" table-layout="fixed">
						<fo:table-column column-width="45mm"/>
						<fo:table-column column-width="45mm"/>
						<fo:table-column column-width="45mm"/>
						<fo:table-column column-width="45mm"/>
						<fo:table-body>
	<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:   Blah Blah </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: Blah Blah  </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/Models: Blah Blah  </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" white-space-collapse="false"> </fo:block>
		</fo:table-cell>
	</fo:table-row>
						</fo:table-body>
					</fo:table>
				</fo:block>
		</fo:flow>
	</fo:page-sequence>
</fo:root>

Reply via email to