AH Formatter / XSL Formatter
Q&A



XSLT/XSL-FO/MathML Technics

Space

Top
Basic, General
About AH Formatter
About XSL Formatter
Operation
Programming
XSLT/XSL-FO/SVG/MathML Conformance
XSLT/XSL-FO/MathML Technics
Index
Q.  I specified negative value for space-before. However, the block doesn't overlap. Why? [No.2004032510]
A. 

Sample FO:

<fo:block>Sample1</fo:block>
<fo:block space-before="-1cm">Sample2</fo:block>

Please refer to 4.3.1. Space-resolution Rules in the W3C Recommendation for XSL-FO.

4.3.1. Space-resolution Rules

3. Alternatively if all of the remaining space-specifiers in S' are non-forcing, then the resolved spacespecifier is defined in terms of those non-suppressed space-specifiers whose precedence is numerically highest, and among these those whose optimum value is the greatest. All other space-specifiers are suppressed. If there is only one of these then its value is taken as its resolved value. Otherwise, follow these rules when there are two or more space-specifiers all of the same highest precedence and the same (largest) optimum: The resolved space-specifier of the last space-specifier in the sequence is derived from these spaces by taking their common optimum value as its optimum.
The greatest of their minimum values is its minimum. The least of their maximum values is its maximum. All other space-specifiers are suppressed.

In Sample FO, space-after of the pre-block is not specified, the value is 0. The space-after of the pre-block is compared with space-before of a target block. Therefore, space-after="0in" is applied. If space-before.precedence="force" is specified, this space-before appears compulsorily.


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