Specialize an indexterm

Post here questions and problems related to editing and publishing DITA content.
gbv34
Posts: 105
Joined: Thu Jan 20, 2022 12:36 pm

Specialize an indexterm

Post by gbv34 »

Hello,
I'm in a situation where I need to create an index for a project which uses the same terms, repeated in different sections, but whose application differs according to the ongoing chapter. Example:

Chapter 1 : Gemmotherapy
Blackcurrant
Chapter 2 : Homeopathy
Blackcurrant
Chapter 3 : Phytotherapy
Blackcurrant

My goal is to publish an index that distinguishes the herbs in regard to the chapters and in order to avoid having duplicates which point to identical terms but different uses. What strategy would you advise me, and how could I leverage <indexterm> for this?

Thanks a lot for your feedback.
------
Gaspard
Radu
Posts: 9041
Joined: Fri Jul 09, 2004 5:18 pm

Re: Specialize an indexterm

Post by Radu »

Hi,

I'm not very skilled in using index terms so you might want to try also registering and asking around on the DITA Users List:https://dita-users.groups.io/g/main
Looking at the DITA 1.3 specification for indexterm: https://www.oxygenxml.com/dita/1.3/spec ... xterm.html
Indexterms can be nested like this:

Code: Select all

<indexterm>Gemmotherapy<indexterm>sBlackcurrant</indexterm></indexterm>
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply