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 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 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
bobs@sagehill.net


----- Original Message ----- 
From: "Aleksey Tsalolikhin" <atsaloli.tech@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-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]