XML technologies / DITA / Creating and organizing topics / Reference

(Excerpt from “DITA – Der neue Standard für Technische Dokumentation” by Johannes Hentrich)

Reference topics answer questions such as “What values does it have?” and “What properties does it have?” A topic of reference type therefore often contains tables of properties, values and descriptions. Here is its simplest structure:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE reference PUBLIC "-//OASIS//ELEMENTS DITAReference//EN" "../dtd/reference.dtd">
<reference id="kapitel8_ref">
    <title></title>
    <refbody></refbody>
</reference>

Like every DITA topic, reference begins with XML and DOCTYPE declarations. The DOCTYPE references reference.dtd.

The reference root is element <reference>. Root element <reference> must receive a unique identifier, an ID.

Element <title> gives the reference topic a meaningful title.

Element <refbody> defines the reference structure. Besides the usual block elements for reference information, DITA provides these elements for reference topics:

<properties>
    <prophead>
        <proptypehd>save()</proptypehd>
        <propvaluehd>0</propvaluehd>
        <propdeschd>Speichern der Datei</propdeschd>
    </prophead>
    <property>
        <proptype>close()</proptype>
        <propvalue>0</propvalue>
        <propdesc>Fenster schließen.</propdesc>
    </property>
    <property>
        <proptype>abort()</proptype>
        <propvalue>0</propvalue>
        <propdesc>Abbruch-</propdesc>
    </property>
</properties>

  

 

 

 

back to top