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


Hi,

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

Thanks
Steffen
               


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".

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



---------------------------------------------------------------------
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
http://www.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]