Thanks, Bob.

'index.on.type' set to 1 did fix it.

Peter


On Thu, Jun 29, 2017 at 5:28 PM, Bob Stayton <[email protected]> wrote:

> 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
> [email protected]
>
> 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">
>> <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
>>
>>      xsltproc --output book.fo <http://book.fo> \
>>               --stringparam use.extensions 0 \
>>               /usr/local/docbook-xsl-1.79.1/fo/docbook.xsl \
>>               book.xml
>>
>>      /usr/local/fop-2.2/fop/fop -fo guide.fo <http://guide.fo> -pdf
>> guide.pdf
>>
>> 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: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to