This element can be used in different contexts:
As an
attributeGroup
definition within
xs:schema
:
Purpose | In this context, this element defines named groups of attributes. These attributes can subsequently be referenced in a complex type definition by a common name. See section 3.6 Attribute Group Definitions of XML Schema - Part 1. |
Parent element | xs:complexType ,
xs:extension ,
xs:schema |
Child elements | xs:attribute |
Attributes |
name |
Name | Type | Description |
---|---|---|
name |
xs:NCName |
The value of the
name attribute specifies the name that
identifies the group of attributes.
|
As an attributeGroup
reference within
xs:complexType
or
xs:attributeGroup
or
xs:extension
:
Purpose | This element references a predefined group of attributes. This leads to the insertion of the whole attribute group at the current location in the schema. |
Parent element | xs:complexType |
Child elements | xs:annotation (optional)
|
Attributes |
ref |
Name | Type | Description |
---|---|---|
ref |
xs:QName |
A global attribute can be referenced in other declarations
in the same schema using the Note: |