XSLT/XSL-FO/SVG/MathML 仕様についてXSL-FO |
|
Q. |
fo:list-item-body の最初の子要素の fo:block に space-before を指定しました。しかし、前の fo:list-item との間にスペースが作成されません。
[No.2005080501]
|
---|---|
A. |
正常な動作です。XSL Formatter は、次の W3CのXSL-FO仕様の勧告に従っています。 ... 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. これは、 なお、以下のように <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> |