Components of a DSD
A DSD consists of a header and number of structure definitions, each associated with
an ID for reference.
- ElementDef - an element description
is a pair of an element name and a constraint.
- ConstraintDef - a constraint
expresses requirements for
an element's attributes, content, and context.
- AttributeDeclDef - an attribute declaration
declares an attribute with a name and a string type.
- ContentDef - a content expression
denotes a requirement for the content node-sequence.
- BoolDef - a boolean expression
combines evaluation of attribute values and context.
- ContextDef - a context expression
denotes a set of ancestor sequences.
- StringTypeDef - a string type
is a regular
expression denoting a set of character data strings or attribute values.
The header contains DSD meta-information: Title,
Version, Author.
The DSD root element contains an attribute with a reference to the
element ID assigned to the application document root element.