A THESAURUS element contains the term equivalence mappings for an application.
THESAURUS is the root element for all thesaurus entries.
Note that the order of sub-elements within THESAURUS is significant. You should add sub-elements in the order in which they are listed in the format section.
For example, THESAURUS_ENTRY sub-elements appear before THESAURUS_ENTRY_ONEWAY. See the example below.
<!ELEMENT THESAURUS
( COMMENT?
, THESAURUS_ENTRY*
, THESAURUS_ENTRY_ONEWAY*
)
>
The THESAURUS element has no attributes.
The following table provides a brief overview of the THESAURUS sub-elements.
| Sub-element | Brief description |
|---|---|
| COMMENT | Associates a comment with a parent element and preserves the comment when the file is rewritten. This element provides an alternative to using inline XML comments of the form <!-- ... -->. |
| THESAURUS_ENTRY | Indicates a set of word forms (contained in THESAURUS_FORM elements) that are equivalent. |
| THESAURUS_ENTRY_ONEWAY | Specifies single-direction equivalency mappings. |
This example shows the thesaurus entries for an application.
<THESAURUS>
<THESAURUS_ENTRY>
<THESAURUS_FORM>france</THESAURUS_FORM>
<THESAURUS_FORM>french</THESAURUS_FORM>
</THESAURUS_ENTRY>
<THESAURUS_ENTRY_ONEWAY>
<THESAURUS_FORM_FROM>bike accessory</THESAURUS_FORM_FROM>
<THESAURUS_FORM_TO>helmet</THESAURUS_FORM_TO>
<THESAURUS_FORM_TO>pannier</THESAURUS_FORM_TO>
<THESAURUS_FORM_TO>tire</THESAURUS_FORM_TO>
</THESAURUS_ENTRY_ONEWAY>
</THESAURUS>