AH Formatter / XSL Formatter
Q&A



XSLT/XSL-FO/MathML テクニック

テーブル

トップ
基本・一般
AH Formatter について
XSL Formatter について
操作方法
プログラミング
XSLT/XSL-FO/SVG/MathML 仕様について
XSLT/XSL-FO/MathML テクニック
索引
Q.  border-after とconditionality retain を fo:table-header に指定し、border-after を fo:table-cell にも指定して、テーブルヘッダーの下にボーダーを引きたかったのですが、できません。なぜですか。 [No.2002062103]
A. 

fo:table に border-collapse="separate" が指定されている場合、 fo:table-header の border や padding は無効になります。 次のW3Cの勧告をご覧ください。

6.7.6 fo:table-header

...

The following properties apply to this formatting object:

...

* [7.7 Common Border, Padding, and Background Properties]
NOTE:
Only the background properties from this set apply. If the value of border-collapse is "collapse" or "collapse-with-precedence" for the table the border properties also apply.

border-collapse が "collapse" でも "collapse-with-precedence" でもない 場合(つまり "separate" の場合)、border、padding は適用されない。

7.26.5 "border-separation"

...

In the separate borders model, each cell has an individual border. The "border-separation" property specifies the distance between the borders of adjacent cells. This space is filled with the background of the table element. Rows, columns, row groups, and column groups cannot have borders (i.e., user agents must ignore the border properties for those elements).

table-header というのは row groups のひとつです。その border は無視し なければならないと明記されています。


Copyright © 1999-2011 Antenna House, Inc. All rights reserved.
Antenna House is a trademark of Antenna House, Inc.