How to highlight text around indexterm tag?
- March 14, 2018
- 1 reply
- 1620 views
Hi,
We have been trying to highlight contents around indexterm tag in DITA document. We are having trouble navigating the indexterm tag. The text doesn't highlight properly when we execute ACL function goto_oid with oid of <p> tag and start offset of flowers word. Instead it highlights the text [index: which appears in the indexterm tag before the flowers word (please see attached image).
Sample from our tag:
<p>Some of the flowers blooming in autumn<indexterm>flowers<indexterm>, autumn</indexterm></indexterm> are: Acashia, Allium, Alstromeria</p>
The ACL's we used:
execute("StartOfLine;")
eval scroll_to_oid(oid_of_p_tag)
eval goto_oid(oid_of_p_tag, start_offset)
execute("CharRightExtend;")
What values should be replaced for start_offset parameter in the above code to highlight word flowers in indexterm tag and word Acashia next to the indexterm tag?
Regards
Suneel

