Hi,
I don't think you can completely avoid delving into XSL to get this done. Currently there is no option in the stylesheets to generate such a book list. The way you accomplish this depends somewhat on how you want it presented.

I can't see how you could do it with XML in the set element. You could create xrefs to reference the book ids, but where would you put such xrefs? The content model of set is very simple. Also, if you wanted the book list in PDF output to have page numbers with dot leaders, then xrefs would not be sufficient.

I presume you want the book toc on the same page as the regular toc in PDF output. Since the toc has its own page-sequence, you will have to break into that template in order to get a book toc on the same page.

I think you will have to customize the template named set.toc in fo/autotoc.xsl for FO output, or html/autotoc.xsl for HTML output. I can provide more details if you decide to try that.

Bob Stayton
Sagehill Enterprises
b...@sagehill.net


----- Original Message ----- From: "Aleksey Tsalolikhin" <atsaloli.t...@gmail.com>
To: <docbook-apps@lists.oasis-open.org>
Sent: Monday, December 06, 2010 3:23 PM
Subject: [docbook-apps] Multiple TOC's from a single DocBook XML set of books? One listing just the books, another listing the books with volumes, chapters and articles?


Hi.  I keep my sys admin documentation in a set of DocBook XML books.

The default TOC gives me all the books and book parts and chapters and
articles and this is fine.  I don't need to do anything maintain or
futz with the TOC, which is great, 'cause I'm the only sysadmin in my
shop and don't have time to mess with it, anyway.

Is it possible to add a top-level TOC, to precede this full TOC?

I just want the books listed; not the parts of the books; nor the
chapters nor articles inside the books.  This is for a quick
orientation to the contents; THEN I want the full TOC to follow.

Is there any way I can do this inside the DocBook XML?  For example,
in my set.xml ?

BTW, my set.xml consists of "setinfo" and lots of include statements,
one per book:

<xi:include xmlns:xi="http://www.w3.org/2001/XInclude";  href="book1.xml" />

etc.

I hope to avoid having to delve into stylesheet or templates or
whatever.  I just want to define a 2nd TOC in the XML itself.  I want
this 2nd TOC to appear both in my HTML and PDF outputs.   Is this
possible?  If not, what would I have to do to get the 2nd TOC?

Thanks,
Aleksey

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





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

Reply via email to