[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XSL-FO table column borders

Subject: Re: XSL-FO table column borders
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Thu, 10 Feb 2011 07:59:58 -0500
Re:  XSL-FO table column borders
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@xxxxxxxxxxxxxxxxxxxx
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.