This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: FW: [docbook-apps] chunk.xsl for cocoon


On Fri, Aug 01, 2003 at 10:03:52AM +1000, Walsh, Mark wrote:
> Thanks Gisbert,
> 
> The rootid parameter works well. I am able to generate each chapter separately where the document contains the equivalent of <chapter id="ch1">....</chapter>. For example, I just set the parameter rootid="ch1" and I get the first chapter.
> 
> However, I can not see how to extract only the "table of contents" page, ie I can't see any tag to add the attribute id="menu" to. If I do this to the book tag I get the whole document. 
> 
> Any ideas on how to generate the "Table of Contents" page only ?

Yes.  Do two things:

1.  Place an empty toc element in your document:

<toc id="menu"/>

2.  And process the document using docbook.xsl
with these two parameters set:

rootid=menu
process.empty.source.toc=1

It will generate the toc content for the whole
document and output just that HTML.

Of course, the links in the toc will all look like
href="#foo", but I presume you have a way for
cocoon to map such references to a new
docbook process to generate the requested target.


Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
The SCO Group                               fax:   (831) 429-1887
                                            email: bobs@sco.com

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]