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] Book title in page footer


Steffen Köhler <s.koehler@goepel.com> 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




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