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] How to output html without TOC?


I tried, and I just untag the <set> since there is only one book. So,
the <book> is root now, and 'toc.max.depth' cannot get rid of the root
element's toc.

On Thu, May 13, 2010 at 11:26 PM, Carlos Araya <carlos.araya@gmail.com> wrote:
> Did you try settingĀ toc.max.depth to 0?
> That should help you get rid of the book toc at least, don't know if it'll
> work with sets
>
> On Wed, May 12, 2010 at 23:34, Tao Wang <dancefire@gmail.com> wrote:
>>
>> I tried set 'nop' for my root element and others, and it doesn't stop
>> generating 'index.html'.
>>
>> I set the param as
>> ----------------------------------
>> <xsl:param name="generate.toc">
>> set nop
>> set/book nop
>> </xsl:param>
>> ----------------------------------
>>
>> And the output is
>> =========================
>> Writing ../html/index.html for article(index)
>> Writing ../html/books.html for article(books)
>> Writing ../html/bugs.html for article(bugs)
>> Writing ../html/commercial_support.html for article(commercial_support)
>> Writing ../html/developers.html for article(developers)
>> Writing ../html/documentation.html for article(documentation)
>> Writing ../html/download.html for article(download)
>> Writing ../html/extra.html for article(extra)
>> Writing ../html/git.html for article(git)
>> Writing ../html/license.html for article(license)
>> Writing ../html/mailinglist.html for article(mailinglist)
>> Writing ../html/news.html for article(news)
>> Writing ../html/bk01.html for book
>> Writing ../html/index.html for set
>> =========================
>>
>> as you saw in the output, '../html/index.html' is generated twice, the
>> first one is the one I want, and it overwrite by the second one, which
>> is the TOC for set.
>>
>> If I set 'nop' to 'set', it doesn't stop generating the file, instead,
>> it just generate an empty 'index.html' without TOC inside.
>>
>> I do not want to generate 'bk01.html' for <book> and 'index.html' for
>> <set> above, how can I do that?
>>
>>
>> On Thu, May 13, 2010 at 12:38 AM, Robert Fekete <frobert@balabit.com>
>> wrote:
>> > Hi,
>> >
>> > I think that you will need to customize the generate.toc template, and
>> > possibly set nop for your root element:
>> >
>> > http://www.sagehill.net/docbookxsl/TOCcontrol.html
>> >
>> > Robert
>> >
>> > Tao Wang wrote:
>> >
>> >> Hi,
>> >>
>> >> I'm using docbook 4.5 (xhtml/trunk.xsl) to generate html files for a
>> >> website. The problem is I don't want the Table of Content being
>> >> output, especially as the file 'index.html'.
>> >>
>> >> I wrote a index file as an <article> in a <book>, which id is 'index',
>> >> and it's supposed to be generated as 'index.html'. However, the
>> >> default TOC will overwrite the 'index.html' file, so I cannot get my
>> >> 'index.html'.
>> >>
>> >> And, actually, the TOC is meaning less for my usage, so I just want to
>> >> turn the TOC off. How can I do that?
>> >>
>> >
>> >
>>
>>
>>
>> --
>> Regards
>>
>> Tao Wang
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
>> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
>>
>
>



-- 
Regards

Tao Wang


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]