Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Common Desktop Environment: Help System Author's and Programmer's Guide > Chapter 3 Writing a Help Topic

Creating an Index

» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

The index for a help volume is similar to the index for a book. As an author, it is important to create index entries for your topics that will allow users to search for keywords or concepts. Creating a thorough index ensures that users will be able to find topics quickly and accurately.

In the DocBook markup, an IndexTerm is the tag for a word or phrase in the help volume text that you want to be included in the index. An IndexEntry is the element in the Index that holds the references to the IndexTerm. Thus IndexEntries might be constructed by extracting and processing the IndexTerms.

IndexTerms are words or phrases to be indexed. IndexTerms may occur almost anywhere in the text flow, but are not part of the text itself. That is, the contents of IndexTerm do not appear in the text itself.

An IndexTerm must contain a Primary, and may contain a See and one or more SeeAlsos, as well as a Secondary. Secondary, in turn, may contain a See and one or more SeeAlsos, as well as a Tertiary.

IndexTerm has the Common attributes, and also SpanEnd and Significance attributes.

An empty IndexEntry with the SpanEnd attribute is used to mark the end of a span of text that begins earlier at an IndexTerm that does have content. The value of the SpanEnd attribute must be the ID of that earlier IndexTerm.

The Significance attribute may have the value Preferred, indicating that the IndexTerm is the most pertinent of the series, or the value Normal (the default).

To Mark an Index Entry

Within the topic you want to index, use the IndexTerm element as shown:

<para>This text deals with two subjects that should be listed in the index: how to rotate your terminal and how to adjust its height.</para>
<IndexTerm>
<Primary>rotating your terminal</Primary>
</IndexTerm>
<IndexTerm>
<Primary>terminal
<Secondary>rotation of</Secondary>
</Primary>
</IndexTerm>
<IndexTerm>
<Primary>terminal
<Secondary>adjustment of</Secondary>
<SeeAlso>troubleshooting</SeeAlso>
</Primary>
</IndexTerm>
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.