This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] Double ToC
Hi Jacques,
What you are seeing is the book TOC and the chapter TOC. In HTML output,
the chapter TOC is turned on by default.
Customize the 'generate.toc' parameter to turn off the chapter TOC. See:
http://www.sagehill.net/docbookxsl/TOCcontrol.html#TOCcomponents
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net
----- Original Message -----
From: "Jacques" <jacques@foucry.net>
To: <docbook-apps@lists.oasis-open.org>
Sent: Friday, May 21, 2004 2:03 AM
Subject: [docbook-apps] Double ToC
Hi the list,
With the help of all of you (Bob the first, thanks again), I have now
some beautiful documentations. :-) with an issue...
Sorry for the long post.
I made a <book> for for now only one chapter and some sect1 to sect3
inside this chapter.
<book>
<title>Book title</title>
<chapter>
<title>my chapter title</title>
<sect 1>
<title>my sect 1 title</title>
<para> text of sect1
<sect 2>
<title>Title of sect2</title>
<para> inside sect2</para>
</sect2>
</para>
</sect1>
</chapter>
</book>
When I generate a html file, using docbook-xsl 1.65.1, I have 2 Toc.
One after the <hr> separator (just behind the book title), one another
just after the chapter title. The second one doesn't have the chapter
line.
Here is the html result :
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<title>Book title</title>
<meta content="DocBook XSL Stylesheets V1.65.1" name="generator">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084"
alink="#0000FF">
<div class="book" lang="en">
<div class="titlepage">
<div>
<div>
<h1 class="title"><a name="N10001"></a>Book title</h1>
</div>
</div>
<div>
</div>
<hr>
</div>
<div class="toc">
<p>
<b>Table of Contents</b>
</p>
<dl>
<dt>
<span class="chapter"><a href="#N10005">1. my chapter
title</a></span>
</dt>
<dd>
<dl>
<dt>
<span class="sect1"><a href="#N10008">my sect 1
title</a></span>
</dt>
</dl>
</dd>
</dl>
</div>
<div class="chapter" lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title"><a
name="N10005"></a>Chapter 1. my chapter title</h2>
</div>
</div>
<div>
</div>
</div>
<div class="toc">
<p>
<b>Table of Contents</b>
</p>
<dl>
<dt>
<span class="sect1"><a href="#N10008">my sect 1
title</a></span>
</dt>
</dl>
</div>
<div class="sect1" lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a
name="N10008"></a>my sect 1 title</h2>
</div>
</div>
<div>
</div>
</div>
<p>
text of sect1
<div class="sect2" lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a name="N1000D"></a>Title
of sect2</h3>
</div>
</div>
<div>
</div>
</div>
<p>
inside sect2
</p>
</div>
</p>
</div>
</div>
</div>
</body>
</html>
Many thanks in advance for your help.
Jacques
--
Qui ne rote, ni ne pète est vouer à l'explosion.
François Rabelais
To unsubscribe from this list, send a post to
docbook-apps-unsubscribe@lists.oasis-open.org, or visit
http://www.oasis-open.org/mlmanage/.
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.