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: Creating A TOC automatically

On Tue, Oct 08, 2002 at 01:40:33PM -0700, vhikida@inreach.com wrote:
> I'm afraid I'm still a novice at Docbook and related technologies. I am
> under the impression that using <toc> </toc> will automatically cause a toc
> to be created.
> I tried the following docbook xml file.
> <?xml version='1.0' encoding='UTF-8'?>
> <?xml-stylesheet type="text/css"
> href="http://docs.boostmyscore.com/dtd/docbook.css";?>
> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
> "http://docs.boostmyscore.com/dtd/docbook/docbookx.dtd"; >
> <book>
> <bookinfo>
>      <title>Docbook Test</title>
>      <date>October 1, 2002</date>
> </bookinfo>
> <toc></toc>
> <chapter id="chapter1">
> 	<title>Chapter 1</title>
> 	<para>
> This is Chapter 1 of Docbook test.
> 	</para>
> </chapter>
> <chapter id="chapter2">
> 	<title>Chapter 2</title>
> 	<para>
> This is Chapter 2 of Docbook test.
> 	</para>
> </chapter>
> </book>
> I am using Xalan and chunk.xsl. No TOC is created in the html files that
> are produced. Am I doing something wrong?

Interesting.  The empty <toc> element should not
make any difference unless you have some parameters
set to process it.  What happens when you remove
the empty <toc>?  Do you get an index.html file
either way?

I'm able to process your file with both Saxon and xsltproc
and the 1.55.0 chunk stylesheet, and I get a TOC in
index.html.  I don't currently have Xalan set up to test it.


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