<attributedef>

The <attributedef> element specifies an attribute that is bound to a set of controlled values. This binding restricts the permissible values for the attribute to the set of controlled values.

The <attributedef> 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 the attribute to which the controlled values are bound.
  • The @translate attribute has a default value of no.

Example

In the following code sample, the enumeration definition for the @otherprops attribute limits the permissible values to the subject values-otherprops:

<subjectScheme>
    <!-- DEFINE SETS OF CONTROLLED VALUES -->    
    <!-- Values for @otherprops -->
    <subjectdef keys="values-otherprops">
        <subjectdef keys="examples"/>
    </subjectdef>
    
    <!-- BINDS SETS OF CONTROLLED VALUES -->    
    <!-- Binding for @otherprops -->
    <enumerationdef>
        <attributedef name="otherprops"/>
        <subjectdef keyref="values-otherprops"/>
    </enumerationdef>

</subjectScheme>

This means that the only valid value for the @otherprops attribute is examples.