xs:attribute

Defines an attribute. See more info at http://www.w3.org/TR/xmlschema-1/#element-attribute.

An attribute by default displays the following properties when rendered in the diagram: default, fixed, use and type. Connectors to the attribute are drawn using dotted lines if the attribute use is optional. The attribute name is stroked out if prohibited.

Table 4.3. xs:attribute properties
Property NameDescriptionPossible ValueMentions
NameAttribute name. Always required.Any NCName for global/local attributes, all declared attributes' QName for references.For all local or global attributes. If missing, will be displayed as '[attribute]' in the diagram.
Is ReferenceWhen set, the local attribute is a reference.true/falseFor local attributes.
TypeQualified name of a simple type.All global simple types and built-in simple types. In addition another 3 proposals are present: [anonymous restriction], [anonymous list], [anonymous union] for creating anonymous simple types more easily. For all attributes. For references, the type is set to the referred attribute.
DefaultDefault value. When specified, an attribute is added by the schema processor (if it is missing from the instance XML document) and it is given this value. The default and fixed attributes are mutually exclusive.Any stringFor all local or global attributes. For references the value is from the referred attribute.
FixedWhen specified, the value of the attribute is fixed and must be equal to this value. The default and fixed attributes are mutually exclusive.Any stringFor all local or global attributes. For references the value is from the referred attribute.
UsePossible usage of the attribute. Marking an attribute "prohibited" is useful to exclude attributes during derivations by restriction.optional, required, prohibitedFor local attributes
FormSpecifies if the attribute is qualified (i.e., must have a namespace prefix in the instance XML document) or not. The default value for this attribute is specified by the 'attributeFormDefault' attribute of the xs:schema document element.unqualified/qualifiedFor local attributes.
IDThe component id.Any idFor all attributes.
ComponentThe edited component name.Not editable property.For all attributes.
NamespaceThe component namespace.Not editable property.For all attributes.
System IDThe component system id.Not editable property.For all attributes.