2.1.4.3.8.2.3 Attribute domain coding requirements

An attribute domain must consist of one file, whose name consists of the module name plus Domain plus the xsd extension. For example: newAttDomain.xsd for an attribute named "new". The file must have a single attribute group definition that contains the definition of the attribute itself, where the attribute group is named attnameAtt-d-attribute.

For example, for an attribute named "new":

<xs:attributeGroup name="newAtt-d-attribute">
  <xs:attribute name="new" type="xs:string"/>
</xs:attributeGroup>

The attribute domain must be reflected in a shell document type XSD that integrates it. See 2.1.4.3.4 Domain usage declaration (the @domains attribute) for details of attribute domain @domains values.

For example, if the attribute named "new" is a specialization of the @props attribute, the @domains value would be "a(props new)".

Previous Topic:  2.1.4.3.8.2.2 Structural specialization coding requirements

Next Topic:  2.1.4.4 Constraints

Parent Topic:  2.1.4.3.8.2 XSD schema specialization module coding requirements

Sibling Topics:

2.1.4.3.8.2.1 General element type declaration coding requirements

2.1.4.3.8.2.2 Structural specialization coding requirements