This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Generating TOC with Saxon


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>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]