This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
indexterms with leading \
- From: Michael Wiedmann <mw at miwie dot in-berlin dot de>
- To: DocBook-Apps ML <docbook-apps at lists dot oasis-open dot org>
- Date: Wed, 29 May 2002 21:23:47 +0200
- Subject: DOCBOOK-APPS: indexterms with leading \
Using:
- DocBook XML 4.2.cr1-1
- DocBook XSL 1.50.1-EXP2
- xsltproc (libxml 20421, libxslt 10017, libexslt 708)
OR
saxon 6.4.4
Given the following minimal test file (processed with default
XSL stylesheets - not customized):
<?xml version='1.0' encoding='ISO-8859-1'?>
<!DOCTYPE article PUBLIC '-//OASIS//DTD DocBook XML V4.1.2//EN'
"/var/share/sgml/docbook/dtd/xml/4.1.2/docbookx.dtd" >
<article lang="en">
<articleinfo>
<title>Test Article</title>
</articleinfo>
<sect1>
<title>\first</title>
<indexterm><primary>\first</primary></indexterm>
<indexterm><primary>\second</primary></indexterm>
<para>foo foo foo</para>
</sect1>
<appendix>
<title>Index</title>
<para>bla bla bla</para>
<index>
<!-- index will be created by XSL stylesheet -->
</index>
</appendix>
</article>
If there is more than one <indexterm> with a leading \ (backslash)
only the first of these <indexterm>s shows up in the generated index.
It doesn't matter at which place the n'th <indexterm> appears in the
source file.
Michael
--
mw@miwie.in-berlin.de http://www.miwie.org
mw@miwie.org