AH Formatter / XSL Formatter
Q&A



XSLT/XSL-FO/SVG/MathML Conformance

XSL-FO

Top
Basic, General
About AH Formatter
About XSL Formatter
Operation
Programming
XSLT/XSL-FO/SVG/MathML Conformance
XSLT/XSL-FO/MathML Technics
Index
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 margin-left/right/top/bottom that is the absolute (top/bottom/left/right) property disregarding the specification of the start/end-indent, space-before/after that is the relative (before/after/start/end) property. This behavior conforms to the W3C Recommendation for XSL-FO. Please refer to the following for details.

5.3 Computing the Values of Corresponding Properties
5.3.1 Border and Padding 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 start/end-indent that is the relative property for the following codes.

<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:


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