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.  In my FO, space-before was specified for fo:block of the first child of fo:list-item-body. However, space is not generated between previous fo:list-item. [No.2005080501]
A. 

This is a correct working. XSL Formatter confirms the following the W3C Recommendation for XSL-FO.

6.8.3 fo:list-item

...

The block-progression-dimension of the content-rectangle of an area generated by the fo:list-item is just large enough so that the allocation-rectangles of all its child areas are contained in it. In particular, the space-before and space-after of the child areas have no effect on the spacing of the list item. For purposes of the block-stacking constraints the areas generated by fo:list-item are treated as if there they have a fence preceding and a fence following them.

And, If space-before is specified for fo:list-item, it is effective.

<fo:list-item space-after="1.0em">
    <fo:list-item-label>
        <fo:block text-align="end"> 1 </fo:block>
    </fo:list-item-label>
    <fo:list-item-body>
        <fo:block> aaa </fo:block>
    </fo:list-item-body>
</fo:list-item>

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