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.
Property Name | Description | Possible Value | Mentions |
---|---|---|---|
Name | Attribute 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 Reference | When set, the local attribute is a reference. | true/false | For local attributes. |
Type | Qualified 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. |
Default | Default 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 string | For all local or global attributes. For references the value is from the referred attribute. |
Fixed | When specified, the value of the attribute is fixed and must be equal to this value. The default and fixed attributes are mutually exclusive. | Any string | For all local or global attributes. For references the value is from the referred attribute. |
Use | Possible usage of the attribute. Marking an attribute "prohibited" is useful to exclude attributes during derivations by restriction. | optional, required, prohibited | For local attributes |
Form | Specifies 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/qualified | For local attributes. |
ID | The component id. | Any id | For all attributes. |
Component | The edited component name. | Not editable property. | For all attributes. |
Namespace | The component namespace. | Not editable property. | For all attributes. |
System ID | The component system id. | Not editable property. | For all attributes. |