This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: book level toc at other levels?
- From: Bob Stayton <bobs at caldera dot com>
- To: Marc Brierley <marc dot brierley at stanford dot edu>,docbook-apps at lists dot oasis-open dot org
- Date: Mon, 17 Jun 2002 20:52:41 -0700
- Subject: Re: DOCBOOK-APPS: book level toc at other levels?
- References: <p05100302b93426522b96@[171.64.138.32]>
On Mon, Jun 17, 2002 at 05:09:21PM -0700, Marc Brierley wrote:
> Hello - I'm trying to get the HTML stylesheets (chunk) to build a
> navigation menu that essentially would be the book level (index.html)
> toc that would also be on chapter pages. In my stylesheet I write:
>
> <xsl:template name="user.header.content">
> <xsl:call-template name="divisions.toc">
> <xsl:with-param name="toc-context" select="book"/>
> </xsl:call-template>
>
> At the index.html level this produces the desired results of a book
> level toc, but at chpt.html level, nothing appears. I know I'm
> probably not understanding how autotoc works, but this has been my
> best try. Any ideas out there?
Probably a context problem. There is no 'book' element
child in the context of a division.
Try select="ancestor::book".
--
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
Caldera International, Inc. fax: (831) 429-1887
email: bobs@caldera.com