$Date$
$Revision$
elements
indexterm
indexterm
Element
indexterm
&indexterm.purpose;
&indexterm.synopsis.gen;
Description
IndexTerms identify text that is to be placed in the
index. In the simplest case, the placement of the
IndexTerm in the document identifies the location of
the term in the text. In other words, the IndexTerm
is placed in the flow of the document at the point where the
IndexEntry in the Index should point. In
other cases, attributes on IndexTerm are used to
identify the location of the term in the text.
IndexTerms mark either a single point in the document
or a range. A single point is marked with an IndexTerm
placed in the text at the point of reference.
There are two ways to identify a range of text:
Place an IndexTerm at the beginning of the range with
Class set to StartOfRange and
give this term an ID.
Place another IndexTerm at the end of the range with
StartRef pointing to the
ID of the starting IndexTerm.
This second IndexTerm must be empty.
The advantage of this method is that the range can span unbalanced element
boundaries.
Place the IndexTerm anywhere you like and point to the
element that contains the range of text you wish to index with the
Zone attribute on the IndexTerm.
Note that Zone is defined as
IDREFS so a single IndexTerm can point to
multiple ranges.
The advantage of this method is that IndexTerms can be
collected together or even stored totally outside the flow of the
document (in the meta for example).
Processing expectations
IndexTerms are suppressed in the primary text flow, although they
contribute to the population of an index and serve as anchors for
cross references.
Under no
circumstances is the actual content of IndexTerm
rendered in the primary flow.
It is possible to construct index terms that are difficult to parse at
best and totally illogical at worst. Consider the following:
...
]]>
There is no way that this can fit into the semantics of an
IndexTerm. Although it claims to be the start of a range,
it does not have an
ID for the end-of-range
IndexTerm to point back to.
In addition, it includes zoned terms, and mixing the two
different methods for indicating a range in the same IndexTerm
is probably a bad idea.
&indexterm.parents.gen;
&indexterm.children.gen;
Attributes
class
Class identifies the type of
IndexTerm. If StartRef is supplied,
the default for Class is EndOfRange,
otherwise it is Singular.
pagenum
PageNum indicates the page on which this
index term occurs in some version of the printed document.
scope
Scope identifies in which indexes the
IndexTerm should appear. Global means the index
for the whole collection of documents, Local means the index
for this document only, and All means both indexes.
significance
Significance specifies whether or not
this IndexTerm is considered the most important location
for information about the terms being indexed. Generally,
Preferred IndexTerms get special typographic
treatment in the Index.
startref
The use of StartRef implies a spanning index
entry. StartRef is used on the term that
defines the end of the span and points to the term which defines the
beginning.
zone
The use of Zone implies a spanning index
entry. Zone holds the &AT.ID;s of the elements
to which it applies. The IndexTerm applies to the contents
of the entire element(s) to which it points. If Zone is used, the physical placement of the IndexTerm in the flow
of the document is irrelevant.
See Also
&indexterm.seealso.gen;
Examples
&indexterm.example.1.txt;
&indexterm.example.1.gen;
&indexterm.example.2.txt;
&indexterm.example.3.txt;
&indexterm.example.seealso.gen;