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: Re: [docbook-apps] Vertical alignment in header with graphic

Hi Dean,
This would require copying and customizing the template named header.table.  The vertical alignment property (display-align) is hardcoded in there as "before".  I think the idea was to make a consistent top margin space above the header.  But with a rule turned on, it probably makes more sense to align to the rule underneath.
Bob Stayton
Sagehill Enterprises
----- Original Message -----
Sent: Friday, September 12, 2008 10:24 AM
Subject: [docbook-apps] Vertical alignment in header with graphic

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:
                <!-- Odd pages -->
                <xsl:when test="$sequence = 'odd' and $position = 'left'">
                        <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:value-of select="ancestor-or-self::book/title"/>
                <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"/>
Dean Nelson

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

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