This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Generating TOC with Saxon
- To: Jeff Beal <jeff dot beal at ansys dot com>,"DocBook Mailing List (E-mail)" <docbook-apps at lists dot oasis-open dot org>
- Subject: Re: DOCBOOK-APPS: Generating TOC with Saxon
- From: Dave Pawson <daveP at dpawson dot freeserve dot co dot uk>
- Date: Thu, 18 Oct 2001 04:44:34 +0100
- List-Id: <docbook-apps.lists.oasis-open.org>
At 15:33 17/10/2001 -0400, Jeff Beal wrote:
>I'm having problems getting Saxon to generate table of contents. I've
>tried passing parameters to DocBook via the command-line and in a
>stylesheet. I've tried having every 'generate.xxx.toc' set to 1, and
>tried setting some of them to zero. I haven't yet hit on the right
>combination to generate a table of contents for each book in the docset.
>
>Here's the latest parameter section of my driver:
>
>
> <xsl:param name="use.extensions" select="'1'"/>
> <xsl:param name="generate.division.toc" select="1" />
> <xsl:param name="generate.chapter.toc" select="0" />
> <xsl:param name="generate.set.toc" select="0" />
> <xsl:param name="generate.section.toc" select="0" />
> <xsl:param name="generate.book.toc" select="1" />
> <xsl:param name="generate.reference.toc" select="0" />Can anyone help me
> out here?
Is this for docbook or website?
Assuming docbook and html and xslt !
<xsl:param name="generate.component.toc" select="1" doc:type='boolean'/>
<xsl:param name="generate.division.toc" select="1" doc:type='boolean'/>
<xsl:param name="generate.set.toc" select='1' doc:type='boolean'/>
defaults to true
<xsl:param name="generate.section.toc" select='0' doc:type='boolean'/>
So perhaps if you are only using sections, you won't get tocs?
The only other thing I can think of is that you haven't put
a <toc/> element in the source, to tell the stylesheets
where you want the toc?
HTH DaveP
----------------------------------------------------------------
To subscribe or unsubscribe from this elist use the subscription
manager: <http://lists.oasis-open.org/ob/adm.pl>