Name
xs:attributeGroup
Attributes
name
The unqualified name of the attribute group that is being defined. (Attribute groups take the target namespace of the schema.)
xs:attributeGroup
elements with thename
attribute may appear only as children ofxs:schema
andxs:redefine
elements.ref
The unqualified name of the attribute group that is being referenced. (Attribute groups take the target namespace of the schema.)
xs:attributeGroup
elements with theref
attribute may be included inxs:attributeGroup
,xs:complexType
,xs:extension
, andxs:restriction
elements.
Contents
xs:annotation?, ( (xs:attribute | xs:attributeGroup)*, xs:anyAttribute?) )
The xs:attributeGroup
element is used to define and reference collections of attributes.
Uses of xs:attributeGroup
that
define the groups must have a name
attribute and may include xs:annotation
, xs:attribute
, xs:attributeGroup
, and xs:anyAttribute
child elements. Uses of
xs:attributeGroup
that
reference previously defined attribute groups must have a ref
attribute and are typically empty,
though they may contain an xs:annotation
child element.
Get XML Pocket Reference, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.