[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] FO: gap between cells in a table

Subject: Re: [xsl] FO: gap between cells in a table
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 21 Oct 2008 11:04:17 -0400

At 2008-10-21 15:42 +0100, Dave Pawson wrote:
G. Ken Holman wrote:
At 2008-10-21 14:50 +0200, Florent Georges wrote:
"G. Ken Holman" wrote:

> > What is the best approach for this problem?

> I would implement the sub-tables as individual tables.

Thanks for your answer. I will experiment with this approach.

> Since gaps are table-wide properties, I think embedding tables
> is best

Which property can I use to set the gap width?
The shorthand is:  border-spacing="<length> <length>?"
 - the first specifies the separation in the inline-progression direction
 - that applies to the block-progression direction unless overridden
   with the second
The longhand is:  border-separation.inline-progression-direction="<length>"


The lengths specify the distance that separates adjacent cell borders.

If one length is specified, it gives both the horizontal and vertical spacing. If two are specified, the first gives the horizontal spacing and the second the vertical spacing. Lengths may not be negative.

Yes, that's the CSS definition, but the XSL modification to that definition specifically make reference to the writing-direction-dependent properties because in a tb-rl writing mode the "horizontal" and "vertical" of CSS are flipped.

It seems to be a lazy mans charter. Type as much as you need to get
what you want.

lets you name both.

Subtly different, shorthand vs full!

True, both properties let you set both components of separation, but the CSS shorthand is also re-interpreted in terms of XSL-FO rather than the biased terms of CSS.

And as with many properties with compound components, not explicitly setting any compound component in the longhand form sets all compound components per the specification.

. . . . . . . . . . . Ken

Upcoming XSLT/XSL-FO hands-on courses:      Wellington, NZ 2009-01
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
Video sample lesson:    http://www.youtube.com/watch?v=PrNjJCh7Ppg
Video course overview:  http://www.youtube.com/watch?v=VTiodiij6gE
G. Ken Holman                 mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal

Current Thread