XSL Formatter Q&A
XSLT/XSL-FO/MathML TechnicsFloat |
|
| Q. | I placed fo:block in side-float and put the text content in it. Then the width of side-float became the full width of region-body. How is the width of float decided? [No.2002093015] |
|---|---|
| A. |
The width of fo:float is decided depending on its content. According to the W3C Recommendation for XSL-FO: ... Side-floats derive their length in the inline-progression-dimension intrinsically from their child areas; the length is not determined by an explicit property value. Thinking from this part: Side-floats derive their length in the inline-progression-dimension intrinsically from their child areas There is no definition in the case that the content of side-float has no width, the W3C Recommendation seems to assume that the long text strings, which require line breaking, does not become the content of float. As this specification does not permit us to specify inline-progression-dimension (width) directly to fo:float, Place fo:block-container in fo:block and specify inline-progression-dimension to fo:block-container. |