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
[email protected]
--------------------------------------------------
From: <[email protected]>
Sent: Friday, December 14, 2012 8:18 AM
To: <[email protected]>
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
[email protected]
ZF Friedrichshafen AG
88038 Friedrichshafen, Deutschland/Germany
Telefon/Phone +49 7541 77-7644
[email protected]
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: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]