OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] Multiple TOCs


Have you tried removing the id from the toc?

/Niels

Greetings
Niels Müller Larsen
Senior Lecturer IBA Kolding
Bachelor of Web Development Program



On 8 May 2018, at 17.16, Peter Fleck <peterfleck@gmail.com> wrote:

Hi all,

Is it possible to have multiple TOC's?

I need a short TOC with just <part> and <chapter> titles and then a second TOC following after with <section> for a more detailed TOC.

I tried adding the following to <xsl:template match="d:book">

  <xsl:call-template name="make.book.tocs">
   <xsl:with-param name="toc.max.depth" select="4"/>
   <xsl:with-param name="toc.section.depth" select="0"/>
  </xsl:call-template>
  <xsl:call-template name="make.book.tocs">
   <xsl:with-param name="toc.max.depth" select="4"/>
   <xsl:with-param name="toc.section.depth" select="1"/>
  </xsl:call-template>

But I'm getting a Previously Used ID error - ID values must be unique within a document which makes sense.

I know I can manually create a TOC file and include that way - https://tdg.docbook.org/tdg/5.2/toc.html but is there a way to do it automatically and avoid the duplicate ID?

Thanks,

Peter




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]