Re: [docbook-apps] Docbook, Subversion, and keyword substitution]]

From
Jirka Kosek <>
Date
2005-10-12T06:25:11+00:00
ID
Thread
Re: [docbook-apps] Docbook, Subversion, and keyword substitution]]
Geoff Purchase wrote:
> 
> Thanks for the pointers.  I figure I must be doing something wrong 
> because I can get Bob's example to work with <xsl:value-of 
> select="//releaseinfo[1]"/> and that inserts the information from 
> book/bookinfo into the footer of every page, but when I use 
> ancestor::releaseinfo[1] I have no success.
> 
> My customisation layer includes the template above.
> 
> My articles have this:::
> <article id="background">
>   <title>Helpful Background Information</title>
>   <articleinfo>
>     <releaseinfo>$Id: background.xml 555 2005-10-11 23:33:16Z gmp0 
> $</releaseinfo>
>   </articleinfo>
> 
> 
> I have tried running 1.68.1 and 1.69.1 stylesheets with no success.
> 
> Any suggestions?

Replace ancestor::releaseinfo[1] with
ancestor::article/articleinfo/releaseinfo[1]

-- 
------------------------------------------------------------------
   Jirka Kosek     e-mail:      http://www.kosek.cz
------------------------------------------------------------------
   Profesionální školení a poradenství v oblasti technologií XML.
      Podívejte se na náš nově spuštěný web http://DocBook.cz
        Podrobný přehled školení http://xmlguru.cz/skoleni/
------------------------------------------------------------------
   Nejbližší termíny školení: DocBook 5.-7.12. * XSL-FO 19.-20.12.
      XSLT 17.-20.10. * XML schémata (včetně RELAX NG) 7.-9.11.
------------------------------------------------------------------