On Feb 4, 2008, at 17:11, Puppala, Kumar (LNG-CON) wrote:
Hi
I am trying to render a 2x2 table, the first row of which spans
across two cells and two rows as shown below:
<fo:table table-layout="fixed" width="100%">
<fo:table-column column-number="1" column-width="1.250000in"/>
<fo:table-column column-number="2" column-width="1.250000in"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell border-style="solid" border-width="0.2mm"
padding="2pt" text-align="left" display-align="before" number-
columns-spanned="2" number-rows-spanned="2" >
<fo:block>
<fo:inline font-family="Times" color="#000000" font-weight="normal"
font-style="normal" text-decoration="no-underline" font-size="10pt"
>kangaroo
</fo:inline>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row></fo:table-row>
</fo:table-body>
</fo:table>
This markup used to produce the desired results in fop 0.20.5 but
gives me validation errors when using 0.94 and higher (trunk
included).
This (an empty row) is definitely not allowed by the XSL-FO Rec, so
the validation error is more correct than 0.20.5, in any case.
The XSL content model of fo:table-row only allows for one or more
fo:table-cell child nodes, possibly preceded by some fo:markers
(although, IIC, FOP Trunk will ignore markers in a table-row).
If I try to adhere to the validation rules and provide a table-cell
with an empty block for the second row, it complains that the
number of cells overflow the number specified for the table.
From this analysis, it looks like if a table contains a row which
spans the entire columns and any additional rows, we run into
issues. Has anyone encountered this issue and are there any
workarounds for this?
What if you add two empty cells, or simply leave out the empty row?
The last option would definitely be preferable, as it saves resources
(no construction of empty cells/blocks). If you can adapt the
stylesheet, so it omits the offending row, that should work...
HTH!
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]