elementdef

Darwin Information Typing Architecture (DITA) Version 1.3 Part 3: All-Inclusive Edition

Document
Darwin Information Typing Architecture (DITA) Version 1.3 Part 3: All-Inclusive Edition
Version
1.3
Author
OASIS DITA Technical Committee

The elementdef element identifies an element to which an attribute is bound. If the enumerationdef element does not contain an elementdef element, the enumeration is bound to the attribute in all elements.

Content models

See appendix for information about this element in OASIS document type shells.

Inheritance

- topic/data subjectScheme/elementdef

Example

In this example, the value attribute for the lomDifficulty element is bound to a specified set of values. Processors should limit the values for the value attribute on the lomDifficulty element to the following set of values: easy, medium, or difficult. Other elements that have a value attribute are not affected.

<subjectScheme>
  <subjectdef keys="difficulty">
    <subjectdef keys="easy"/>
    <subjectdef keys="medium"/>
    <subjectdef keys="difficult"/>
  </subjectdef>
  <!-- ... -->
  <enumerationdef>
    <elementdef name="lomDifficulty"/>
    <attributedef name="value"/>
    <subjectdef keyref="difficulty"/>
  </enumerationdef>
</subjectScheme>

Attributes

The following attributes are available on this element: ID attribute group, status and base from Metadata attribute group, outputclass, Debug attribute group, class (Not for use by authors), and the attributes defined below.

name (REQUIRED)
Defines the element for which an attribute enumeration is defined.
translate
Indicates whether the content of the element should be translated or not. For this element the default value is "no". Setting to "yes" will override the default. The DITA architectural specification contains a list of each OASIS DITA element and its common processing default for the translate value; because this element uses an actual default, it will always be treated as translate="no" unless overridden as described. Available values are:
no
The content of this element is not translateable.
yes
The content of this element is translateable.
-dita-use-conref-target
See Using the -dita-use-conref-target value for more information.