docbook-apps

itemized list, and import precedence

  • 1.  itemized list, and import precedence

    Posted 08-06-2011 08:46
    I have
    import docbook stylesheets
    import my attribute sets

    in which I have

    <xsl:attribute-set name="list.block.spacing">
    <xsl:attribute name="space-before">5mm</xsl:attribute>
    <xsl:attribute name="space-after">5mm</xsl:attribute>
    </xsl:attribute-set>


    The resulting xsl-fo shows

    <fo:list-block
    space-before.optimum="1em"
    space-before.minimum="0.8em"
    space-before.maximum="1.2em"

    space-after.optimum="1em"
    space-after.minimum="0.8em"
    space-after.maximum="1.2em"

    space-before="0pt"
    space-after="5mm"
    >

    I.e. the
    space-before is set twice?

    I'm guessing it's an import precedence issue... but I don't know
    what the precedence is... and Mike Kays book only talks about
    nested importing?

    1. Which takes precedence please?
    2. My basic problem is that I need to reduce the space-before/space-after
    each list-item?

    Any suggestions please? I want it to be the same as basic para's, i.e.
    line-height 16pt.

    TIA



    regards

    --
    Dave Pawson
    XSLT XSL-FO FAQ.
    http://www.dpawson.co.uk