← Prev in month ← Prev in thread
Next in thread → Next in month →

Listitem overwrites text in orderedlist

From
Matteo Regazzo <>
Date
2013-10-01T06:29:55+00:00
ID
Thread
Listitem overwrites text in orderedlist
Hi everybody,

    

    I'm just learning, since 3 months, to use docbook and to write the
    stylesheets.

    Now I have this problem: in the orderedlist of the FO the distance
    from the listitem to the text is not dynamic and if the listitem
    number (dot included) takes more space because it's made by 2 or
    more numbers (eg. 16. instead of 1.) it enters in the text space and
    "mixes" with it, in other words overwrites the text. I'm not able to
    find a property of the list block to arrange this problem, or (more
    probably) I'm using it in a wrong way.

    

    I tried in these ways, but without success:

    

    1)

    <xsl:attribute-set name="list.block.spacing">

            <xsl:attribute
    name="space-after">20px</xsl:attribute>

    </xsl:attribute-set>

    

    2)

    <!--xsl:attribute-set name="list.item.label">

            <xsl:attribute
    name="margin-right">20</xsl:attribute>

    </xsl:attribute-set-->

    

    3)(I've found this one in a website)

    <xsl:attribute-set name="list.label.spacing">

            <xsl:attribute name="right">

                <xsl:choose>

                    <xsl:when
    test="self::orderedlist">2em</xsl:when>

                    <xsl:otherwise>0pt</xsl:otherwise>

                </xsl:choose>

            </xsl:attribute>

    </xsl:attribute-set-->

    

    I even tried with different properties of each attribute-set...

    Have you ever had this problem? Do you have any suggestion?

    

    Matteo
← Prev in month ← Prev in thread
Next in thread → Next in month →