On Jun 11, 2006, at 11:55, Gregor & Stefan wrote:

[...]
Let's say you need a border of 1pt over the whole table (=every line
in the grid needs to be 1pt wide), then you'd need to specify:
a) a border of 0.5pt for the table
b) borders of 0.5pt for the cells
c) border-separation="0pt" for the table (IIC, that's the default)

my tables are flowing on several pages. and then the second and
following top lines respectively the preceding before last bottom lines
are only  0.5pt because fop renders the table borders only over the
whole table. i think this behaviour is correct (but im not that deep in
the specs ... maybe it's a bug ?).

This behaviour is correct indeed, because, for example:

border-after-width="0.5pt"

is the same as

border-after-width.length="0.5pt"
border-after-width.conditionality="discard"

The latter means: drop the borders at breaks. IIC, and our implementation supports it, then forcing the .conditionality component to "retain" on the table should do the trick.

Mind you: this is not possible using the border or border-width shorthands. If you're using those, they need to be replaced by separate border-specs for each side of the table.

You would need something like:

<fo:table border-collapse="separate"
  border-separation="0pt"
  border-before-width.length="0.5pt"
  border-before-width.conditionality="retain"
  border-after-width.length="0.5pt"
  border-after-width.conditionality="retain"
  border-start-width.length="0.5pt"
  border-end-width.length="0.5pt">

Beware: untested, and without doing the same for the table-cells, this will only work if the cells' content is not split over multiple pages... :/

what i'm doing at the moment:
1. setting all borders to the same value
2. fop renders an areatree
3. an xslt analyses the page breaks and sets the border-bottom- width to
the apropriate value

That's a valid approach, but it seems a bit like overkill if you know that it is (should be) possible in XSL-FO directly.


HTH!

Andreas



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

Reply via email to