The helpset file begins with an XML declaration. The next part of the file, as shown in the following sample, defines the help version, the title of the help, and the location of the mapping file that is used to support context-sensitive help:

<helpset version="1.0">

<title>Interesting help project</title>

<maps>

<homeID>home</homeID>

<mapref location="test.jhm" />

</maps>

The remaining sections of the file define several views, such as the table of contents (TOC), index, and search. Each <view> tag includes several tags that define the view, such as the <name> tag that specifies the name of the view and the <data> tag that specifies the data file for the view.

You can also define your own views in Sun JavaHelp by overriding the template.hs file. For example, you can create an alternate list of topics and provide that list as a separate view.

Contents toc.xml File in Sun JavaHelp

The contents toc.xml file defines the items in the table of contents as shown in the following example file: