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] | [Elist Home]


Subject: Re: DOCBOOK-APPS: customizing page TOCs in HTML output


> At 11:12 AM 31/03/2002 -0800, Bob Stayton wrote:
> >On Sun, Mar 31, 2002 at 10:23:21AM -0500, Ed Nixon wrote:
> > > Can someone please point me to the file(s) and templates where I can
> > > customize the display of Tables of Contents inserted at the top of page in
> > > both single and chunked HTML output?
> > >
> > > I'd like to experiment with a horizontal link list and, to improve
> > > accessibility, I'd like to insert a TITLE attribute in the link that
> > > contains the same text as the section title.
> >
> >XSL or DSSSL?
> >In either case, you might check the DocBook FAQ at
> >http://www.dpawson.co.uk/docbook/index.html
> >to get started.
> 
On Sun, Mar 31, 2002 at 04:09:04PM -0500, Ed Nixon wrote:
> Apologies, that's XSL.
> 
> Thanks, but I don't see any FAQs that refer to the TOC part of the HTML 
> output. There is some good info on header and footer info and on the nav 
> characterisitcs of chunked HTML, but I didn't see anything that seemed 
> helpful for where and how section titles are processed into the definition 
> list at the top of an HTML output page, single or chunked.
 
There are a couple of HTML TOC related answers under:
DocBook XSL Stylesheets -> DocBook Stylesheet Customization.
But I don't think the FAQ covers your question.

The TOC processing machinery for a chapter starts in the
"component.toc" template, which is in the autotoc.xsl
file.  That template outputs the localizes "Table of
Contents" title, and then does apply-templates in
mode="toc".  The templates in that file that use that mode
call the "subtoc" template recursively to build the TOC
from the element and its children.  It is "subtoc" that
actually outputs the <dl> elements, so that is where you
would want to concentrate your efforts on customizing
the format of a TOC, probably by providing a replacement
subtoc template. 

-- 

Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
Caldera International, Inc.                 fax:   (831) 429-1887
                                            email: bobs@caldera.com


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


Powered by eList eXpress LLC