[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: TOCs in articles?
- To: Dan York <>, ldp-docbook <>,
- Subject: Re: TOCs in articles?
- From: "Greg Ferguson" <>
- Date: Mon, 17 Jul 2000 09:14:00 -0400
- In-Reply-To: Dan York <firstname.lastname@example.org> "TOCs in articles?" (Jul 17, 7:59am)
- Resent-Date: Mon, 17 Jul 2000 09:13:21 -0400 (EDT)
- Resent-Message-ID: <aHA6OC.A.dBG.Iawc5@murphy>
On Jul 17, 7:59am, Dan York wrote:
> Subject: TOCs in articles?
> Okay, now I'm confused. I'm using the template that Stein provided
> and working on a HOWTO. I have no problem coding the DocBook... I've
> been using SGML and HTML since the early 1990s. My challenge is this -
> how do I get the nice table of contents to be at the beginning?
> When I used <book>... </book> as the overrall element, I simply put
> a <toc></toc> at the point where I wanted the TOC and it was very nicely
> However, the template - and another HOWTO I submitted changes for (NIS)
> both use <article>... </article> as the overall element. There appears
> to be no way to generate a TOC for this type of document. Is that
> Am I missing something? Or is it the style of all new HOWTOs to *NOT*
> have a TOC at the beginning?
You need to either :
1) create your howto using the ldp.dsl DSSSL stylesheet
2) create your own.
Why?...because this is the variable that causes the toc to be generated:
By default, it is set to "#f" (FALSE) for those instances that
have a top-level container element of <article>, but it's "#t"
(TRUE) for <book>.
Hence, you're seeing the default behavior of the DocBook DSSSL
stylesheets. You need to override that processing instruction.
Greg Ferguson - s/w engr / mtlhd | email@example.com
SGI Tech Pubs - http://techpubs.sgi.com |
Linux Doc Project - http://www.linuxdoc.org |
To UNSUBSCRIBE, email to firstname.lastname@example.org
with a subject of "unsubscribe". Trouble? Contact email@example.com