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>: a table for reference information is defined by element<properties>. Each item specifies type, value and description. Its header uses element<prophead>, with type in element<proptypehd>, value in element<propvaluehd>and description in element<propdeschd>. Cells inside element<poperty>use element<proptype>for type, element<propvalue>for value and element<propdesc>for description.
<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><refsyn>: identifies the programming language or syntax described in this 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