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

Re: FO: gap between cells in a table

Subject: Re: FO: gap between cells in a table
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 21 Oct 2008 11:04:17 -0400
Re:  FO: gap between cells in a table
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>"
                  border-separation.block-progression-direction="<length>"


http://www.w3.org/TR/2004/WD-xsl11-20041216/#border-spacing

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.

http://www.w3.org/TR/2004/WD-xsl11-20041216/#border-separation
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.