Dear all,

I have some difficulties to understand how to align the List Item Graphic with 
the first text line in the list body. In my example (attachment) the list body 
seems to be aligned with the top of the graphic (the graphic has actually no 
surrounding white space around). The background colors and line are set 
manually to see better what's going on. What I need is to align the list body 
text with the middle of the graphic, not the top.

Several tests with the fo-attribute "alignment-baseline" did not bring any 
solution. Here is my current stylesheet code for generating this type of 
admonition:

<xsl:template match="tip" name="volkswagen.tip.graphical.admonition">
        <xsl:variable name="id">
                <xsl:call-template name="object.id"/>
        </xsl:variable>
        <xsl:variable name="graphic.width">
                <xsl:apply-templates select="." mode="admon.graphic.width"/>
        </xsl:variable>

        <fo:block id="{$id}" 
xsl:use-attribute-sets="graphical.admonition.properties" border="thin dotted 
black">
                <fo:list-block 
provisional-distance-between-starts="{$graphic.width} + 6pt" 
provisional-label-separation="6pt">
                        <fo:list-item>
                                <fo:list-item-label end-indent="label-end()">
                                        <fo:block background-color="#EEFFEE">
                                                <fo:external-graphic 
width="auto" height="auto" content-width="{$graphic.width}">
                                                        <xsl:attribute 
name="src">
                                                                
<xsl:call-template name="admon.graphic"/>
                                                        </xsl:attribute>
                                                </fo:external-graphic>
                                        </fo:block>
                                </fo:list-item-label>
                                <fo:list-item-body start-indent="body-start()">
                                        <fo:block 
xsl:use-attribute-sets="admonition.properties" background-color="#FFEEEE">
                                                <xsl:apply-templates/>
                                        </fo:block>
                                </fo:list-item-body>
                        </fo:list-item>
                </fo:list-block>
        </fo:block>
</xsl:template>

Does anyone has a good idea how to control alignment between list item labels 
and their body text?

Thanks, Ben.




---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org

Reply via email to