OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Graphical admonition in FO: Alignment?

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 name="graphic.width">
                <xsl:apply-templates select="." mode="admon.graphic.width"/>
        <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-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"/>
                                <fo:list-item-body start-indent="body-start()">
                                        <fo:block xsl:use-attribute-sets="admonition.properties" background-color="#FFEEEE">
Does anyone has a good idea how to control alignment between list item labels and their body text?
Thanks, Ben.

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]