cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

force indexterm processing in gentext (ID/IDREF usage)

naglists
1-Newbie

force indexterm processing in gentext (ID/IDREF usage)

Hi,

I have a set of informaltables. In those tables I have some <indexterm>
elements.

I have a link tag that refers to those informal tables. I want the
<indexterm>s to process from within the link tag.

Specifically, if I have:

<h1><title>section 1</title>
<para>Blah blah blah <link id="qwerty">.</para>
...
<h1><title>section 2</title>
<para>Blah blah blah <link id="qwerty">.</para>
...
<h1><title>section 4</title>
<para>Blah blah blah <link id="qwerty">.</para>
...


<informaltable id="qwerty">
....
<indexterm><primary>MyTerm</primary></indexterm>

I want "MyTerm" in the index three times (four if you count the actual
location, but honestly, I'm going to suppress that), once each in section
1, 2, and 4. I have looked at the FOSI source for <indexterm> and can see
that it is not added to Main_Index__index.tiv if context = "* _sfe:Gentext"
but even if I edit FOSI source and ADD the same savetext used for indexterm
in other contexts, it isn't fiiring. (Or it is being suppressed still
somewhere else.)

If I select the contents of the link in Editor (essentially selecting the
gentext), and Edit as XML Source, I do not see _sfe:Gentext. I do see two
processing instruction wrappers, Pub _tiv and Pub _gtlink.

Has anyone done something like this?

--
Paul Nagai
2 REPLIES 2

Oh, I meant to include that when I'm editing the "gentext" contents of the
link, I do see the <indexterm> so it is being carried forward to the
section 1, 2, and 4 within the cross reference text.


and edited FOSI code enabling <indexterm> in context = "* _gtlink * _tiv"
and then previewing PDF output reliably creates a spectacular crash 😉


Top Tags