Hi Lars,
You didn't say if this was for fo or html output, so I will assume fo. In
fo/division.xsl, you will find the template for the book element. In that template is
a call to 'make.book.tocs', which is also in fo/division.xsl. In 'make.book.tocs',
you will see that it generates a page-sequence for each of the main toc, and the
figure, table, and other lists. You want to customize make.book.tocs to add your
extra toc to the existing main TOC page-sequence, or create a new one page-sequence if
that is what you want. I would suggest just adding a call to a custom template such
as 'list.of.parts', and then write a custom template for that.
In list.of.parts, you don't want to process the part elements in mode="toc", because
that will generate entries for the children of each part, which you don't want.
Instead, just call the template named 'toc.line' for each part. For example
(untested):
<xsl:for-each select="//d:part">
<xsl:call-template name="toc.line"/>
</xsl:for-each>
That's the basic process. You can embellish as needed.
Bob Stayton
Sagehill Enterprises
[email protected]
----- Original Message -----
From: "Lars Vogel" <[email protected]>
To: "DocBook Apps" <[email protected]>
Sent: Wednesday, July 04, 2012 5:26 AM
Subject: [docbook-apps] Two TOC in a book one only for the Parts and another "normal"
one
Hi,
I would like to have two TOC for my book. One which only contains the
titles of the Parts (for a quick overview) and another "normat" one.
How would I do this?
Best regards, Lars
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]