docbook-apps

Vertical alignment in header with graphic

  • 1.  Vertical alignment in header with graphic

    Posted 09-12-2008 17:25
      |   view attached
    Hello all,

    I have a header that I have added a graphic to, as per Bob's instructions in
    his book, but the associated text is not vertically aligned as I would like -
    bottom aligned on the line (see attached image).

    I don't see anywhere in the "header.content" template where I can do this.
    It appears that the text is top aligned in the cell and with a larger image it
    has pushed it farther from the bottom line.

    Is there a way to align this text to the bottom line?

    Here is my section in the header.content template:


    <xsl:when test="$sequence = 'odd' and $position = 'left'">
    <xsl:choose>
    <xsl:when test="$met.header.image = 'YES'">
    <fo:external-graphic content-height="{$met.header.image.height}">
    <xsl:attribute name="src">
    <xsl:call-template name="fo-external-image">
    <xsl:with-param name="filename"></xsl:with-param>
    select="$met.header.image.filename"/>
    </xsl:call-template>
    </xsl:attribute>
    </fo:external-graphic>
    </xsl:when>
    <xsl:otherwise>
    <xsl:value-of select="ancestor-or-self::book/title"></xsl:value-of>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:when>
    <xsl:when test="$sequence = 'odd' and $position = 'center'"> </xsl:when>
    <xsl:when test="$sequence = 'odd' and $position = 'right'">
    <xsl:apply-templates select="." mode="object.title.markup"></xsl:apply-templates>
    </xsl:when>



    Thanks,
    Dean Nelson




    **************Psssst...Have you heard the news? There's a new fashion blog,
    plus the latest fall trends and hair styles at StyleList.com.
    (http://www.stylelist.com/trends?ncid=aolsty00050000000014)