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] Custom TOC frame


Hi,
In the 1.77.1 version, you will need to copy the 'make.toc' template from html/autotoc.xsl to your customization layer and add it after:

<xsl:element name="{$toc.list.type}">
 <xsl:attribute name="class">mktree</xsl:attribute>

In the forthcoming version, a template named 'toc.list.attributes' is called at that point and can be customized to add class or other attributes to that element.

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net

--------------------------------------------------
From: <steffen.wagner.hays@zf.com>
Sent: Friday, December 14, 2012 8:18 AM
To: <docbook-apps@lists.oasis-open.org>
Subject: [docbook-apps] Custom TOC frame

Hello,

I try to customize the "bk01-toc.html" file with the table-of-contents when generating HTML frames from a DocBook file.

Now I need to add a CSS class "mktree" to the topmost "ul" (I replaced "dt" by "ul"):

<p><b>Table Of Contents</b></p>
<ul CLASS="mktree">
<li><span class="preface"><a href="main.html#id393513">History</a></span></li> <li><span class="preface"><a href="main.html#id395699">Preface</a></span></li>
...


How can I add this class to the TOC list?
My JavaScript (for handling the navigation) needs to find the topmost "ul" by an ID.

THANKS





Mit freundlichen Grüßen / Kind regards / S pozdravem

Steffen Wagner, VoyagerSoft
wagner@voyagersoft.de

ZF Friedrichshafen AG
88038 Friedrichshafen, Deutschland/Germany
Telefon/Phone +49 7541 77-7644
steffen.wagner.hays@zf.com
Software Consultant


Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Prof. Dr. Giorgio Behr Vorstand/Board of Management: Hans-Georg Härter (Vorsitzender/CEO), Dr. Stefan Sommer, Dr. Konstantin Sauer, Dr. Peter Ottenbruch, Jürgen Holeksa, Dr. Gerhard Wagner, Reinhard Buhl, Rolf Lutz, Wilhelm Rehm
Sitz/Headquarters: Friedrichshafen
Handelsregistereintrag Amtsgericht Ulm HRB 630206/Trade register of the municipal court of Ulm HRB 630206


---------------------------------------------------------------------
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]