Hi.
I'm a complete newbie - I just started learning XSL two days ago - so
please bear with me if these are really obvious questions...
1. I'm trying to create a header that puts the title of the book on the
left side of even pages, and the title of the current chapter on the
right side of odd pages. The following *appears* to work, but I have no
idea if this is the proper or accepted way to do it, or if it's going to
create weird side-effects down the road. Does this look right?
<xsl:template name="header.content">
<xsl:param name="pageclass" select="''" />
<xsl:param name="sequence" select="''" />
<xsl:param name="position" select="''" />
<xsl:param name="gentext-key" select="''" />
<fo:block>
<xsl:choose>
<xsl:when test="$pageclass = 'titlepage'">
<!--no header on title pages-->
</xsl:when>
<xsl:when test="$position = 'left' and
($sequence = 'even' or $sequence = 'blank')">
<xsl:apply-templates select="ancestor-or-self::book"
mode="object.title.markup" />
</xsl:when>
<xsl:when test="$position = 'right' and
($sequence = 'odd' or $sequence = 'first')">
<xsl:apply-templates select="ancestor-or-self::chapter"
mode="object.title.markup" />
</xsl:when>
<xsl:otherwise>
<!-- no header -->
</xsl:otherwise>
</xsl:choose>
</fo:block>
</xsl:template>
2. Is there any way to apply a background image to headers and footers?
There's a running pattern I want to apply behind the header and footer
text, going right up to the edges of the page; I've figured out how to
insert individual graphics - like logos and such - into headers, but I'm
stumped as to how to get them to run behind the text.
Thanks,
- David Prokopetz.
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html
Received on Thu Jul 20 20:39:23 2006
This archive was generated by hypermail 2.1.8 : Thu Jul 20 2006 - 20:39:23 PDT