XSLT/XSL-FO/MathML テクニックテーブル |
|
Q. |
fo:block に margin を指定し、その子供の fo:table にも margin を指定したのですが、
fo:table は親の fo:block の margin の影響を受けません。なぜですか。
[No.2004032508]
|
---|---|
A. |
例えば、次のような場合です。 <fo:block margin-left="1in"> <fo:table margin-left="0.75in"> W3CのXSL-FO仕様の勧告には以下のようにあります。 5.3.2. Margin, Space, and Indent Properties If the corresponding absolute "margin" property is specified on the
formatting object and the formatting object generates a reference area the
computed value of the margin is used to calculate the computed value of the
corresponding "Y-indent" property, where Y is either "start" or "end". The
formulae for "start-indent" and "end-indent" are":
<fo:table margin-left="from-parent() + 0.75in"> |