XSLT/XSL-FO/SVG/MathML 仕様についてXSL-FO |
|
Q. |
次のように、margin-top 、margin-left 、margin-right 、space-before 、start-indent 、end-indent を指定した場合、どのように動作しますか。
<fo:block-container margin-top="xxx" margin-left="yyy" margin-right="zzz" space-before="aaa" start-indent="bbb" end-indent="ccc">[No.2005021801] |
---|---|
A. |
XSL Formatterは、relative (before/after/start/end) property である
5.3 Computing the Values of Corresponding Properties ... If both an absolute and a corresponding relative property are explicitly specified, then the above rule gives precedence to the absolute property, and the specified value of the corresponding relative property is ignored in determining the computed value of the corresponding properties. 5.3.2 Margin, Space, and Indent Properties ... If the corresponding absolute "margin" property is specified ... the computed value of the margin is used to calculate the computed value of the corresponding "Y-indent" property
ただし、次のようなコードの場合、relative property である <fo:block-container margin="-2.5in" start-indent="0in" end-indent="0in">
これは、relative property ( 5.3.2 Margin, Space, and Indent Properties ... If the corresponding absolute margin property is not explicitly specified, or if the corresponding relative property is specified on the formatting object and the absolute property only specified by the expansion of a shorthand, the corresponding absolute margin property is calculated according to the following formulae: |