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: Re: [docbook-apps] Book title in page footer


I understand, there is no value with the book title: Here is the code that work perfectly:

        <xsl:template match="book/title" mode="footer">
                <xsl:apply-templates />
        <xsl:when test="($sequence = 'odd' or $sequence = 'even') and $position = 'center'">
                <xsl:apply-templates select="ancestor-or-self::book/title" mode="footer" />


Von:        Markus Hoenicka <markus.hoenicka@mhoenicka.de>
An:        docbook-apps@lists.oasis-open.org
Datum:        01.12.2010 17:02
Betreff:        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".


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  

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


Markus Hoenicka
AQ score 38

To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org

Mit freundlichen Grüßen / Kind regards

Steffen Köhler

GÖPEL electronic GmbH
Göschwitzer Straße 58/60
07745 Jena / Germany

Tel.: +49-3641-6896-661
Fax: +49-3641-6896-944
E-Mail: s.koehler@goepel.com

Sitz der Gesellschaft: GÖPEL electronic GmbH, Göschwitzer Straße 58/60, D-07745 Jena
Geschäftsführer: Holger Göpel, Manfred Schneider, Thomas Wenzel
Registergericht: Amtsgericht Jena HR B 201550

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