How an entry is structured

Each term is one DITA <glossentry> topic. This table shows where each part of an entry goes, and what it becomes in the TBX and JSON exports.

From DITA to TBX and JSON

Part DITA TBX terms.json
Term <glossterm> The first <termSec> term
Status of the term <glossStatus> in <glossBody> administrativeStatus term note status
Definition, where the source gives one <glossdef> definition on the language section definition
How to use it Paragraphs in <glossUsage> <note> on the term usage
Examples A <dl> with outputclass="examples" in <glossUsage> Each “Write” sentence as context on the term examples
Scope note <glossScopeNote> <note> on the term notes
A form not to use, or to use with care <glossAlt> with <glossSynonym>, <glossStatus>, and an optional <glossUsage> Another <termSec> with its own status and note alternatives
Rule, tier, and check type <othermeta> named watership-rule, watership-tier, and watership-check <note> on the concept entry rule
Group <othermeta> named watership-group projectSubset group
Source <othermeta> named watership-source <note> on the concept entry source
Review flag, for wording not yet reviewed <othermeta> named watership-review, with the value drafted <note> on the concept entry review, and the top-level drafted list
Related terms A family row in the map’s relationship table crossReference related

Statuses

A subject scheme map limits <glossStatus> to four values. They match Watership’s own DITA export, and the TBX export maps them to administrative statuses.

DITA TBX Meaning
preferred preferredTerm-admn-sts Use this term.
restricted admittedTerm-admn-sts Use it only where the entry says.
prohibited deprecatedTerm-admn-sts Don’t use it.
obsolete supersededTerm-admn-sts A retired name that must not come back. No stock term uses it yet.

A short entry

<glossentry id="want" xml:lang="en-US">
  <glossterm>want</glossterm>
  <prolog>
    <metadata>
      <othermeta name="watership-group" content="stock"/>
      <othermeta name="watership-rule" content="term-want"/>
      <othermeta name="watership-tier" content="avoid"/>
      <othermeta name="watership-check" content="mechanical"/>
      <othermeta name="watership-source" content="Watership style guide, Terminology"/>
    </metadata>
  </prolog>
  <glossBody>
    <glossStatus value="preferred"/>
    <glossUsage>
      <p>Write “want,” not “wish” or “desire.”</p>
    </glossUsage>
    <glossAlt>
      <glossSynonym>wish</glossSynonym>
      <glossStatus value="prohibited"/>
    </glossAlt>
    <glossAlt>
      <glossSynonym>desire</glossSynonym>
      <glossStatus value="prohibited"/>
    </glossAlt>
  </glossBody>
</glossentry>