Skip to main content
bfriesen
18-Opal
Jul 22, 2015 8:24 PM UTC
Solved

Using replace attribute

I cannot figure out why I cannot find anything in an indexterm. I am trying to find the word cutter in an indexterm. For value I enter cutter. I then populate ontags with indextern, and do not find anything? Am I missing something.

Bryon

18-Opal
Jul 22, 2015 9:11 PM UTC

Hi Bryon--

It depends on your doctype, but for both Docbook and DITA, <indexterm> takes the index terms as element content, not as an attribute value. In the Docbook sample document, if you use the standard Find/Replace dialog, and set "Find What" to "Arbortext" and "Find Within" to "indexterm", it will find the various indexterm entries containing "Arbortext".

If you are using a custom doctype where index terms are specified as attribute values, maybe you could post a sample of your indexterm markup.

(Of course, in your post you typed "indextern" as your tag name, but I assume that was just a typo when creating the question, and you typed it correctly in the search dialog.)

--Clay

2 replies

18-Opal
Jul 22, 2015 9:11 PM UTC

Hi Bryon--

It depends on your doctype, but for both Docbook and DITA, <indexterm> takes the index terms as element content, not as an attribute value. In the Docbook sample document, if you use the standard Find/Replace dialog, and set "Find What" to "Arbortext" and "Find Within" to "indexterm", it will find the various indexterm entries containing "Arbortext".

If you are using a custom doctype where index terms are specified as attribute values, maybe you could post a sample of your indexterm markup.

(Of course, in your post you typed "indextern" as your tag name, but I assume that was just a typo when creating the question, and you typed it correctly in the search dialog.)

--Clay

Translate
bfriesen
bfriesen18-OpalAuthor
18-Opal
Jul 23, 2015 2:09 PM UTC

Thanks Clay I was using the replace attribute, not find/replace. You are correct it was a typo.

Thanks

Bryon

Translate