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

Re: padding

Subject: Re: padding
From: "Nikolai Grigoriev" <grig@xxxxxxxxxxx>
Date: Tue, 6 Nov 2001 13:12:32 +0300
from table column
Gustaf,

> No error but no result either:
> 
> <fo:table-column column-width="15%" padding="0.5em"/>

Strictly speaking, there is no such thing as padding on table columns.
A quote from XSL Rec:

XSL>   6.7.4. fo:table-column
XSL>   ...
XSL>   The following properties apply to this formatting object:
XSL>   * Common Border, Padding, and Background Properties
XSL>      Only the background properties from this set apply. If the value 
XSL>      of border-collapse is "collapse" or "collapse-with-precedence" 
XSL>      for the table the border properties also apply. 

You have to specify padding on single cells, rather than on columns.

XSL Recommendation provides a means to specify features on the column
via from-table-column() function. However, I am not sure if any 
XSL FO implementation supports it; ours (XEP) still lacks this feature.
In any case, it would be as verbose as specifying explicit padding
on each cell:

<fo:table-column column-width="15%" padding="0.5em"/>
...
<fo:table-cell padding-left="from-table-column()" 
                 padding-right="from-table-column()">...

(The presence of from-table-column() function explains why padding
is permitted by the DTD. It is correct to have any attribute on
fo:table-column, but most of them will be used only in expressions 
that contain 'from-table-column()', and never applied directly).

> For some reason, the general 'padding' 
> attribute doesn't show up in 7.7. Common Border, Padding, 
> and Background Properties.

'Padding' is a shorthand, listed in a special section of the spec
(7.29.15 "padding"). 

Best regards,
Nikolai




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • padding
    • Gustaf Liljegren - Mon, 5 Nov 2001 13:19:05 -0500 (EST)
      • Nikolai Grigoriev - Tue, 6 Nov 2001 05:13:26 -0500 (EST) <=

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.