> -----Original Message-----
> From: fabio76 [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 05, 2006 4:46 PM
>
> Hi,
> I want that the block to be the same height as the cell
> because I want to create a border left of a block, not of a
> cell I attached the example <fo:table>
> <fo:table-column column-width="1cm"/>
> <fo:table-column column-width="3cm"/>
> <fo:table-body>
> <fo:table-row>
> <fo:table-cell >
> <fo:block font-family="Helvetica" font-size="10pt"
> font-weight="normal"
> space-before.optimum="2pt" space-after.optimum="2pt"
> text-align="left">
> <fo:block-container left="-20pt" position="absolute" >
> <fo:block border-left-style="solid"
> border-left-color="black"
> border-left width="3pt">
>  
> </fo:block>
> </fo:block-container>
> -
> </fo:block>
> </fo:table-cell>
> <fo:table-cell >
> <fo:block font-family="Helvetica" font-size="10pt"
> text-align="left">
> text for an extra line in the table row
> </fo:block>
> </fo:table-cell>
> </fo:table-row>
> </fo:table-body>
> </fo:table>
>
>
> The problem is that the height of the left border, in the
> first cell, is not high as the second block in the second
> cell and the border left of the first cell must be equals to
> the height of a cell.
> Fabio
Hmm, I see,
You probably want to have a change mark in the left margin, right?
No mechanism for that in XSL-FO, but that can be done in your case:
1. set a negative margin-left to your fo:table
2. insert a first fo:table-column (width property is the positive value
of margin-left
3. on fo:table-body (& header & footer), set the start-indent property
to "0cm" (due to inheritance mechanism of margin-left)
4. in each fo:table-row, insert a first fo:table-cell containing an
empty fo:block
5. if you want the left bar, set the border-left property of this new
fo:table-cell
That works both with FOP 0.92beta and FOP TRUNK.
Here is the snippet:
<fo:table table-layout="fixed" width="4cm" margin-left="-20pt">
<fo:table-column column-width="20pt"/>
<fo:table-column column-width="1cm"/>
<fo:table-column column-width="3cm"/>
<fo:table-body start-indent="0cm">
<fo:table-row>
<fo:table-cell border-left="solid black 3pt">
<fo:block/>
</fo:table-cell>
<fo:table-cell>
<fo:block> </fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>
text for an extra line in the table row
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
HTH,
Pascal
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]