[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Adding headings to a table of contents
Hi,
I looked into this, and it appears that this
feature is not fully implemented. In fact, the reference page for this
param says just that:
It seems to work in TOCs in HTML output, but with
some oddities. For example, if section numbering is turned on, a bridgehead
appears in the TOC with a section number that matches the section number of its
*parent*, but the bridgehead in the text has no section number.
In FO output, bridgeheads only work in section
TOCs. That is, if your generate.toc parameter includes "section toc", so
that you generate a toc for each section, then you will see the bridgeheads
included in such section TOCs. But not at TOCs included at any other
level.
Looking at older stylesheets, I don't think this
feature ever worked properly. But I can't seem to find a bug report about
it not working either. As the reference page says, it should either be
fixed or removed.
If you want to implement it yourself in a FO
customization layer, take a look in html/autotoc.xsl and see how it is included
in the select attribute for the variable whose name is "nodes". That is
where child nodes are selected for inclusion in a TOC. You may experience
unwanted numbering of bridgeheads, though, if the HTML example is any
indication.
|
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]