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 by including the value "a(baseAttName attname)" in the @domains attribute for the top-level type used by the shell, where baseAttName is one of "base" or "props", whichever the new attribute is specialized from. For example, if the attribute named "new" is a specialization of the props attribute, the domains value would be "a(props new)".

Return to main page.

DITA v1.2 CD 03
Copyright © OASIS Open 2005, 2010. All Rights Reserved.