AH Formatter /
XSL Formatter
XSLT/XSL-FO/SVG/MathML ConformanceXSL-FO |
|
| Q. |
When I specify margin-top, margin-left, margin-right, space-before, start-indent and end-indent for fo:block-container as follows, how does XSL Formatter operate?
<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 uses the value of the
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
However, XSL Formatter uses the value of the <fo:block-container margin="-2.5in" start-indent="0in" end-indent="0in"> This behavior also conforms to the W3C Recommendation. Please refer to the following for details. 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: |