XML technologies / DITA / Creating and organizing topics / Glossary
(Excerpt from “DITA – Der neue Standard für Technische Dokumentation” by Johannes Hentrich)
DITA 1.1 added the glossary topic type to task, concept and reference. The glossary type specializes the concept type.
Previously, glossary entries used two methods:
using definition-list elements;
specializing the generic topic with elements
<topic>,<body>,<dl>,<dlentry>,<dt>and<dd>. In Introduction to DITA: A User Guide to the Darwin Information Typing Architecture, Jennifer Linton and Kylene Bruski explain this specialization.
DITA 1.1 specialized concept rather than the generic topic.
This example shows a single glossary entry:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE glossentry PUBLIC "-//OASIS//DTD DITA Glossary//EN" "../dtd/glossary.dtd">
<glossentry id="glossar">
<glossterm>HTML</glossterm>
<glossdef>Hypertext Markup Language</glossdef>
</glossentry>Like other DITA topics, a glossary topic begins with XML and DOCTYPE declarations. The DOCTYPE references glossary.dtd.
The glossary root is the element <glossentry>. Root element <glossentry> must receive a unique identifier, an ID.
A single glossary entry has no element <title>.
The element <glossterm> holds the term to define.
The entry’s definition or description is in element <glossdef>.
A glossary usually has many entries. This example combines several in one topic.
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Composite//EN" "../dtd/ditabase.dtd">
<topic id="gesammtes_glossar">
<title>Glossar</title>
<glossentry id="gloss_1">
<glossterm>HTML</glossterm>
<glossdef>Hypertext Markup Language</glossdef>
</glossentry>
<glossentry id="gloss_2">
<glossterm>SGML</glossterm>
<glossdef>Standard Generalized Markup Language
</glossdef>
</glossentry>
<glossentry id="gloss_3">
<glossterm>XML</glossterm>
<glossdef>eXtensible markup Language</glossdef>
</glossentry>
</topic>
Copyright © 2008 XLcontent Verlag
You may print the online version for your private use.
Otherwise, this chapter from “DITA - Der neue Standard für Technische Dokumentation” is subject to the same conditions as the bound edition. The work, including all its parts, is protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
XLcontent Verlag, Pflegerstraße 40, 81247 München
back to top