[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] multiple indexes each contains all index terms
Hi Peter,
I think you need to set the 'index.on.type' parameter to 1. See this reference for more details:
http://www.sagehill.net/docbookxsl/IndexSpecial.html
However, as you will read there, an untyped index element will contain all indexterms. If you need to separate them, then all indexterms need to be typed (or customize the XSL to select out typed entries).
Bob Stayton
Sagehill Enterprises
bobs@sagehill.net
On 6/28/2017 11:27 PM, Peter Michaux wrote:
Hi,
I have a test document where I want a specialized index. The document contains
----------------
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE book SYSTEM "/usr/local/docbook-5.0/dtd/docbook.dtd"> xsltproc --output book.fo <http://book.fo> \
<book>
...
<indexterm><primary>start tags</primary><secondary>case sensitivity</secondary></indexterm>
<indexterm type="species"><primary>Espostoa lanata</primary></indexterm>
<indexterm><primary>soil pH</primary></indexterm>
...
<index type="species">
<title>Species Index</title>
</index>
<index/>
</book>
----------------
When I run `xsltproc`, the resulting .fo file has all index terms in both indexes. Since all entries are in both index sections of the .fo file, the ids are repeated which causes errors when running `fop` to create a pdf file.
I'm using the following two commands
--stringparam use.extensions 0 \
/usr/local/docbook-xsl-1.79.1/fo/docbook.xsl \ /usr/local/fop-2.2/fop/fop -fo guide.fo <http://guide.fo> -pdf guide.pdf
book.xml
I expected (and wanted) that the first index, Species Index, should have only one entry and the second index only two entries.
What am I missing to make resulting indexes as I expected?
Thanks.
Peter
------------------------------------------------------------ ---------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]