The glossary file describes for the glossary navigator the content and layout of the glossary. The format of a glossary file is the same as that of an index file. The glossary file format, as with the index file format, is based on the World Wide Web Consortium Extended Markup Language (XML).
The following XML code shows a sample definition of a glossary navigator in the helpset file:
<view xml:lang="en" mergetype="javax.help.SortMerge
">
<name>glossary</name>
<label>Glossary</label>
<type>javax.help.GlossaryView</type>
<data>glossary.xml</data>
</view>
The following XML code shows a small example of a glossary file:
<?xml version='1.0' encoding='ISO-8859-1' ?> <!DOCTYPE index PUBLIC "-//Sun Microsystems Inc.//DTD JavaHelp Index Version 2.0//EN" "http://java.sun.com/products/javahelp/index_2_0.dtd"> <index version="2.0"> <indexitem text="applet" target="applet_def"/>
<indexitem text="application" target="application_def"/>
<indexitem text="application server" target="appServer_def"/>
<indexitem text="AWT" target="awt_def"/>
<indexitem text="beans" target="bean_def"/>
</index>
The following table describes the glossary tags:
<index> |
Defines the glossary. It can contains <indexitem> tags and
the following optional attributes.
|
||||||||||||||
<indexitem> |
Defines a glossary entry. Nesting entry1 within entry2 defines
entry2 to be hierarchically contained within entry1. Uses
the following attributes:
|