Search code examples
xsltxsl-fofootnotes

Footnote text ordered list


I'm using XSL-FO and I have a problem with ordered list in footnote text.

In footnote text, the ordered list up to 99 is coming perfect and after there alignment is missing like 99,100,101.

99   data here.
10
0    data here.
10
1    data here.

Can anyone help me to solve this issue?


Solution

  • The property you are looking for is provisional-distance-between-starts; it must be set on the fo:list-block element, for example:

    <fo:list-block provisional-distance-between-starts="36pt">
        <fo:list-item>
            <fo:list-item-label end-indent="label-end()">
                <fo:block>9999</fo:block>
            </fo:list-item-label>
            <fo:list-item-body start-indent="body-start()">
                <fo:block>Lorem ipsum</fo:block>
            </fo:list-item-body>
        </fo:list-item>
    </fo:list-block>
    

    The fact that the list is inside a footnote is not relevant.

    The point is that when provisional-distance-between-starts is not explicitly set its default value is 24 points which, as you experienced, may be less than the width of the labels.

    According to the other formatting properties of your FO file and the formatter you are using, an insufficient label width leads to its text either being wrapped (as in your situation) or overlapping the list item body text.