Next in thread → Next in month →

Re: [docbook-apps] Removing the index from the TOC

From
Bob Stayton <>
Date
2006-02-22T17:06:39+00:00
ID
009e01c637d2$7b321f20$6400a8c0@toshiro
Thread
Re: [docbook-apps] Removing the index from the TOC
Hi Peter,
Another way to turn off the index entry in the TOC is to create an empty
template with mode="toc" for index:

<xsl:template match="index" mode="toc">
</xsl:template>

Each element in a TOC is processed in this mode, so making this template
null will remove that entry from the TOC.

Bob Stayton
Sagehill Enterprises
DocBook Consulting



----- Original Message ----- 
From: "Peter Desjardins" <>
To: <>
Sent: Tuesday, February 21, 2006 9:51 PM
Subject: [docbook-apps] Removing the index from the TOC


I am displaying chunked HTML in a frameset as a simple online help
system.  Both the TOC and index chunks are shown in one frame and every
other chunk is shown in another.  The TOC contains a link to the index
but in this case I need to remove that link.  There's another way for
users to switch between the TOC and index and since the link targets for
the TOC/index frame are in the other frame, clicking the "Index" link in
the TOC will open the index in the content pane (not the correct
behavior).

How can I exclude the index from the TOC?  I've tried some XSLT
customizations but I haven't found the right spot yet.

The content is a book. I'm using html/chunk.xsl in version 1.69.1 of the
DocBook stylesheets.  My XSL processor is Saxon.  The OS is Windows.

Thanks for your help.

Peter Desjardins
SupplyScape Corporation
http://www.supplyscape.com

---------------------------------------------------------------------
To unsubscribe, e-mail: 
For additional commands, e-mail: 
Next in thread → Next in month →