elementdef
The <elementdef> element identifies
an element on which an attribute is enumerated. When the <elementdef>
is left out of an <enumerationdef> element,
the enumeration is bound to the attribute in all elements.
Contains
note
These models represent only the default document types distributed by OASIS.
Actual content models will differ with each new document type.
Doctype | Content model |
---|---|
subjectScheme | ( (data or data-about) (any number) ) |
Contained by
Doctype | Content model |
---|---|
subjectScheme | enumerationdef |
Inheritance
- topic/data subjectScheme/elementdef
Example
In this example, the <lomDifficulty> element has been specialized from the <data> element. The value attribute on the <lomDifficulty> element (but not the value attribute on other elements) is bound to a specific set of values. This means that processors should limit that attribute on that element to the values veryEasy, easy, medium, difficult, or veryDifficult.
<subjectScheme> <subjectdef keys="difficulty"> <subjectdef keys="veryEasy"/> <subjectdef keys="easy"/> <subjectdef keys="medium"/> <subjectdef keys="difficult"/> <subjectdef keys="veryDifficult"/> </subjectdef> ... <enumerationdef> <elementdef name="lomDifficulty"/> <attributedef name="value"/> <subjectdef keyref="difficulty"/> </enumerationdef> </subjectScheme>
Attributes
Name | Description | Data Type | Default Value | Required? |
---|---|---|---|---|
name | Defines the element for which an attribute enumeration is defined. | CDATA | #REQUIRED | Yes |
id-atts attribute group (id, conref, conrefend, conaction, conkeyref) | A set of related attributes, described in id-atts attribute group | |||
status | The modification status of the current element. | new | changed | deleted | unchanged | -dita-use-conref-target | #IMPLIED | No |
translate | Indicates whether the content of the element should be translated or not. The DITA architectural specification contains a list of each OASIS DITA element and its common processing default for the translate value. | yes | no | -dita-use-conref-target | #IMPLIED | No |
base | A generic attribute that has no specific purpose. It is intended to act as a base for specialized attributes that have a simple value syntax like the conditional processing attributes (one or more alphanumeric values separated by whitespace), but is not itself a filtering or flagging attribute. The attribute takes a space-delimited set of values. However, when acting as a container for generalized attributes, the content model will be more complex; see Attribute generalization for more details. | CDATA | #IMPLIED | No |
global-atts attribute group (xtrf, xtrc) | A set of related attributes, described in global-atts attribute group | |||
class, outputclass | Common attributes described in Other common DITA attributes |