Re: [docbook-apps] Book title in page footer

From
Markus Hoenicka <>
Date
2010-12-01T15:39:50+00:00
ID
Thread
Re: [docbook-apps] Book title in page footer
Steffen Köhler <> was heard to say:

> <xsl:when test="($sequence = 'odd' or $sequence = 'even') and $position =
> 'center'">
>         <xsl:value-of select="ancestor-or-self::book/title">
> </xsl:when>
>
> Works also fine but the superscript is removed. I think the reason is the
> "ancestor-or-self".

Hi,

your code extracts the value of the title element, but does not render  
the element along with all children. However, this is required to  
preserve the superscript. The following (entirely untested, ymmv) code  
is supposed to process the element:

...
<xsl:template select="ancestor-or-self::book/title" mode="footer"/>
...

The mode attribute is required as you want the title to be processed  
in a particular way that matches the footer style. Add a template with  
the same mode attribute to provide your custom processing of this  
element:

<xsl:template match="book/title" mode="footer">
<!-- process element here -->
</xsl:template>

HTH,
Markus


-- 
Markus Hoenicka
http://www.mhoenicka.de
AQ score 38