Creating index terms by hand (other
than copying an index term to paste it elsewhere) is tedious and error
prone. It's strongly recommended to use the specialized dialog box of XMLmind XML
Editor to do that.
Figure 6-1. The "Edit index term" dialog box of XMLmind
XML Editor
An index term is represented by
a a element having attribute
class="role-index-term" containing
text —the primary word or phrase in an index term— and possibly nested span elements having the following roles:
"role-term", "role-see", "role-see-also".
"Rich text" means the mix of text and phrase elements
(b, i, em, etc) allowed in
a and span elements.
Though the grammar allows
<span class="role-term"> to be nested to an arbitrary
depth, a <a class="role-index-term"> may contain only
up two nested <span class="role-term">,
corresponding respectively to the secondary word and tertiary word of an
index term. The same limit applies to
<span class="role-see"> and to
<span class="role-see-also">.
Examples:
Simplest index term containing just a phrase:
<aclass="role-index-term">Dog, man's best friend</a>
End of the above "dogs" range. The end of a range must
be found after the corresponding start of range in the same
input HTML page or in a different input HTML page: