Thanks for your quick response!

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.


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:

1. Set your table border settings as follows (use of shorthand is necessary):

<fo:table border="1pt red solid" border-right="none" border-bottom="none">

2. Set each cell border settings as follows (use of shorthand is necessary):

<fo:table-cell
   border="from-nearest-specified-value(border)"
   border-left="none"
   border-top="none">

make sure you do not set borders on the fo:table-row, for:table-column or fo:table-body, because that would change the behavior of this solution. I'm sure this solution has been found out but many before, but I did not find it yet, which is why I like to share it. Not sure whether this solution will work the same cross-renderer, or when border-collapse setting is changed.

Cheers,
-- Abel

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to