<elementdef>
The <elementdef> element specifies an element to which an
attribute and set of controlled values are bound.
Specialization hierarchy
The <elementdef> element is specialized from
<data>. It is defined in the subject scheme module.
Attributes
The following attributes are available on this element: ID
and conref attributes, @base, @class, @name, @outputclass, @status, and @translate.
- The
@nameattribute is required. It specifies the name of an element to which the controlled attribute values are bound. - The
@translateattribute 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.