<elementdef>

The <elementdef> element specifies an element to which an attribute and set of controlled values are bound.

The <elementdef> element is specialized from <data>. It is defined in the subject scheme module.

The following attributes are available on this element: ID and conref attributes, @base, @class, @name, @outputclass, @status, and @translate.

For this element, the following considerations apply:
  • The @name attribute is required. It specifies the name of an element to which the controlled attribute values are bound.
  • The @translate attribute has a default value of no.

Example

In this code sample, the @type attribute for the <note> element is bound to the specified set of values:

<subjectScheme>
  <subjectdef keys="note-values">
    <subjectdef keys="attention"/>
    <subjectdef keys="caution"/>
    <subjectdef keys="danger"/>
  </subjectdef>
  <!-- ... -->
  <enumerationdef>
    <elementdef name="note"/>
    <attributedef name="type"/>
    <subjectdef keyref="note-values"/>
  </enumerationdef>
</subjectScheme>

Processors limit the values for the @type attribute on the <note> element to the following set of values: attention, caution, and danger. Other elements that have a @type attribute are not affected.