1 minute read
Element Child Relations
buttons. (Note: This only affects the order that attributes appear under “Attributes (F1)”, and not the output order of attributes in the Preview Area or RTF, HTML, etc. exporters. The output order is configured separately, and will be explained later.)
Figure 31:
Advertisement
“DTD structure” tab, Attribute editing window: Editing the attributes of the “Lemma” element
Element Child Relations
The list of elements at the left of the DTD editor dialog is a “flat” list, i.e. it only describes what element types appear in the dictionary, but does not describe which element types are allowed to be attached to which other element types when building the hierarchical structure of each article in the Tree View using the right-click “Add:” commands. Clearly, only certain elements may be added to others, for example, it will make little sense to add a “Lemma” element beneath a usage example, so this is blocked. Thus, one needs to define element “child relations”, which describe the “allowed child element types” of each element. This is done in the “Allowed child elements” window of the “DTD structure” tab in the DTD editor dialog, shown in the screenshot below. This window contains two lists: the left one, with heading “Child element”, is a list of the currently allowed child elements for the selected element type. The list on the right is simply a list of all element types, from which one may choose to add allowed child elements. For example, if one wishes to specify that a “Sense” element may have a “TE” (translation equivalent) element attached to it, then one would do the following: 1. Select “Sense” from the list on the very left of the DTD editor dialog. 2. Select “TE” from the list of all elements at the right of the “Allowed child elements” window. 3. Click on the “<- Add child” button.