xsl-list
[Top] [All Lists]

Re: [xsl] XSL-FO table column borders

2011-02-10 07:05:07
At 2011-02-10 09:56 +0100, Arjan Bokx wrote:
I have a fo:table in which I display data in the fo:region-body, with an xsl:for-each construct. I'd like the columns of that table to have solid borders (vertical lines), but if I use things like

<fo:table-column border-left-style="solid" border-right-style="solid"/>

those borders only go down as far as the displayed data do.
I'd like the vertical column borders to go down all the way over the fo:region-body. Using fo:block-containers with left/right solid borders will draw the vertical lines on the first page, but if the data spill over onto a second page, no margins are drawn there.
(I could not find this in Dave Pawson's book, nor in the FAQ list.)

I think you are conflating two concepts: table borders and body region gap decorations.

For the table border, I suggest you specify the border on every cell in that column. But that will only draw the lines for the extent of the table.

As there are no standardized gap decoration facilities available, I believe you are obliged to use the page background to extend any line for the height of the body region.

If you have an image of a small vertical bar, then you can centre that on the background of the body region and repeat it vertically, thus filling the body region from top to bottom.

Alternatively you might find that the XSL-FO engine you are using has extensions that will decorate the gaps.

Having done that, though, then you have to obscure the vertical bar for content that isn't in the table. Which isn't pretty. You might get away with it by using block containers with white backgrounds.

But I think you clearly need to decide are you decorating table columns or page column gaps.

I hope this helps.

. . . . . . . . Ken

--
Contact us for world-wide XML consulting & instructor-led training
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
G. Ken Holman                 mailto:gkholman(_at_)CraneSoftwrights(_dot_)com
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>