Example: Index range defined in a single topic
In this scenario, an index range is defined directly in the body of a topic. This strategy is useful for lengthy topics.
In the following code sample, the index range begins at the start of the second paragraph and continues to the beginning of the last paragraph. If the end element was not present, the index range would end at the end of the topic.
<topic id="accounting">
<title>Accounting regulations</title>
<body>
<p>Be ethical in your accounting.</p>
<p><indexterm start="acctrules">rules</indexterm>Remember to do all of the following: ...</p>
<!-- ...pages worth of rules... -->
<p><indexterm end="acctrules"/>Failure to comply will get you audited.</p>
</body>
<!-- Potential sub-topics -->
</topic>