On Feb 26, 2007, at 16:30, Abel Braaksma wrote:
Andreas L Delmelle wrote:
The reason is twofold:
-> FOP 0.93 does not yet offer support for border-
collapse="collapse" (nor "collapse-with-precedence")
-> with border-collapse="separate", borders only apply to fo:table
or fo:table-cell
Aha, so, in other words: because "collapse" is not supported, the
properties that depend on them (among others: all border-related
properties of fo-table-row, fo:table-body, fo:table-column) are not
supported either, because they only have meaning when "collapse" is
set. This is according to the XSL-FO spec.
Indeed. More generally, you could say that "the collapsing border
model is not implemented", so that refers to the specific property on
fo:table but also everything else related to this (like border-
properties on columns/rows...; note that the same goes for padding)
This "not being implemented" currently goes so far as to force the
separate border model (with a warning) if you try to specify otherwise.
2. Is there a way, other than using borders on each cell, to get
the borders for the column/row to work? Is there a shortcut way
to just set all borders of table/rows/columns/cells to the same
properties?
Not unless someone gets around to implementing border-
collapse="collapse", I'm afraid... :(
Not exactly a complete answer, but because it is so easy to
implement and does what I want, here's a solution:
<snip />
A good one.
Another alternative was posted by Vincent: using the column/body/row
as mere carriers of properties, and using a combination of
border="inherit" with from-table-column() (and possibly from-parent()).
At any rate, the big difference with the collapsing border model, is
that there will be no more need to specify borders on the cells, and
you can simply do:
<fo:table border="1pt solid red">
<fo:table-column border="1pt solid red" number-columns-
repeated="5" />
<fo:table-body>
<fo:table-row border="1pt solid red">
<fo:table-cell>...</fo:table-cell>
...
And all the cells will have the same border, while no border was
specified directly on them. This is the closest one can get to the
effect of "rules='all'" in HTML-tables.
Cheers
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]