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:

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>

  

 

 

 

back to top