This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Refentries in book TOC
- From: "Bradford, Denis" <denisb at rational dot com>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Wed, 06 Mar 2002 13:23:32 -0500
- Subject: DOCBOOK-APPS: Refentries in book TOC
Here's a problem generating HTML using docbook.xsl 1.49 (1.48 too): An
<indexterm> in a <refname> seems to foul up generation of links in the book
TOC. Is this a bug?
************* diff.xml fragment ***************
<refentry id="diff_refentry_25973">
<?dbhtml filename="diff.html"?>
<refnamediv>
<refname>
<indexterm id="indexterm_14213523">
<primary>versions</primary>
<secondary>merging</secondary>
</indexterm>Diff
</refname>
...
************* HTML generated in book TOC ***************
<dt>
<a href="diff.html">
<a class="indexterm" name="indexterm_14213523"></a>Diff
</a> - Compares or merges text files
</dt>
****************************
The <a> here identifies the link target, but the text, Diff, is not
underlined and not active. If I move the indexterm somewhere else (like,
before the refnamediv), TOC links work.
Clearly, fixing the XML is one workaround, but a stylesheet fix would be
better. Anybody know what template to customize? - it's not real clear to
me.
Thanks,
Denis