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] Generating both a short TOC and TOC for a book?

Have you looked at the process.empty.source.toc parameter?  You will 
Probably want to add a role attribute to control depth.

Larry Rowland 

-----Original Message-----
From: Glen Mazza [mailto:glen.mazza@gmail.com] 
Sent: Tuesday, February 15, 2011 10:46 AM
To: docbook-apps@lists.oasis-open.org
Subject: [docbook-apps] Generating both a short TOC and TOC for a book?

Hello, for a Docbook-based PDF document my company is generating I've 
had a request to generate a book-level short Table of Contents (that 
might just have chapter listings, or chapter and top-level sections) *in 
addition to* and just preceding the normally generated TOC.

Looking at the Docbook stylesheet guide[1], it appears I can generate 
only one book-level TOC (whether a normal or short TOC, depending on the 
items I choose to add to the TOC.)  If I want to generate two TOCs, it 
looks like I'll have to override the d:book template in 
fo/division.xsl[2] and create another template similar to 
"make.book.tocs"[3] that takes a parameter providing the "generate.toc" 
value (which I can call once with the regular TOC and once with the 
short TOC).  Is that the case? or is there a simpler way to generate 
both a long and a short TOC for a book?


[1] http://www.sagehill.net/docbookxsl/TOCcontrol.html

To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org

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