On Feb 26, 2007, at 15:05, Abel Braaksma wrote:

Hi Abel,

I was testing the FOP 0.93 the other day and worked through some samples and tried some myself. I was wondering why something like:

<fo:table border-width="0.5pt" border-color="red" >

does not give a border and

<fo:table border-width="0.5pt" border-color="red" border- style="solid">

does.

That's because the initial value for the border-style property is "none". Or more correct: the individual properties for each side (border- before-style etc.) default to "none", and the border-style shorthand refers to the individual properties for the initial value.

BTW, you can also use the border-shorthand:

<fo:table border="0.5pt solid red">

<snip />
I had some more trouble getting the borders of fo:table-column and fo:table-row to work.

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

<snip />
As a result, I have two questions to the community:

1. If the compliance table says "yes" should I, or should we not, interpret that as being compliant to the spec?

Should be compliant, apart from limitations mentioned in the last column. If you ever feel you have discovered a limitation that is not clear from the compliance page, feel free to post it here (or rather fop-dev@), so we can make the necessary changes.

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... :(

If (1) is answered with "yes", then I believe the above to be a bug in FOP 0.93. I know it is a work in progress, but if the answer is "no", it would perhaps save you, the programmers, and others some work, like answering questions like these, when you update the compliance table with accurate data (I volunteer to do a part of it).

If you volunteer, even better! :)
In that case, you'll find the base files in the FOP source distribution (or better: the repository) under: .../src/documentation/ content/xdocs. You can always submit a patch via Bugzilla.


TIA!

Andreas


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

Reply via email to