Thanks Niels,

The TOC is auto-generated so the only way to do it is to modify the /fo/ file manually.

Peter


On 08/05/18 18:27, Niels Müller Larsen wrote:
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 <[email protected] <mailto:[email protected]>> 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



Reply via email to