El Viernes, 18 de Mayo de 2007 19:19, Jeff Powanda escribió:
> I've been trying to figure this out too. In PDF output, how do you
> combine header elements (for example, text and graphics) without
> stacking the text? I want the header content to appear on the same line,
> not stacked on top of one another.
>
> I'm using DocBook XSL 1.7.2.0 and FOP 0.93.
I added a graphic on the LFS customization layout and it just work. The
graphic in on the same line than the text. Copied the LFS customization for
both header.table and header.content with a <fo:external-graphic> element
added (the image is so small, 10pt, due that in LFS we have a 12pt header
height area)
<!-- header.table:
Re-made template to not generate a fo:table in the header,
allowing a more simple header.content customization. -->
<!-- The original template is in {docbook-xsl}/fo/pagesetup.xsl -->
<xsl:template name="header.table">
<xsl:param name="sequence" select="''"/>
<xsl:param name="gentext-key" select="''"/>
<xsl:choose>
<xsl:when test="$gentext-key = 'book' or $sequence = 'blank'"/>
<xsl:otherwise>
<xsl:call-template name="header.content">
<xsl:with-param name="sequence" select="$sequence"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- header.content
Re-made template to show the book title and version on all pages. -->
<!-- The original template is in {docbook-xsl}/fo/pagesetup.xsl -->
<xsl:template name="header.content">
<xsl:param name="sequence" select="''"/>
<fo:block>
<xsl:attribute name="text-align">
<xsl:choose>
<xsl:when test="$sequence = 'first' or
$sequence = 'odd'">right</xsl:when>
<xsl:otherwise>left</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<fo:external-graphic width="auto" height="auto"
content-width="10pt"
src="url(images/note.png)"/>
<xsl:text> - </xsl:text>
<xsl:value-of select="/book/bookinfo/title"/>
<xsl:text> - </xsl:text>
<xsl:value-of select="/book/bookinfo/subtitle"/>
</fo:block>
</xsl:template>
--
Manuel Canales Esparcia
Usuario de LFS nº2886: http://www.linuxfromscratch.org
LFS en castellano: http://www.escomposlinux.org/lfs-es http://www.lfs-es.info
TLDP-ES: http://es.tldp.org
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]