Next in thread →
Next in month →
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 <> An: Datum: 01.12.2010 17:02 Betreff: 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 --------------------------------------------------------------------- To unsubscribe, e-mail: For additional commands, e-mail: 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: 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
Next in thread →
Next in month →