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.
----- 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: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"
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: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:when>
Thanks,
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