XML technologies / XML Schema / XML Schema element reference / xs:attributeGroup (global definition)
(Excerpt from “XML Schema” by Eric van der Vlist)
Global attribute-group declaration that can be referenced within the same schema or from other schemas.
<xs:attributeGroup
id = xs:ID
name = xs:NCName
{beliebige Attribute mit einem Nicht-Schema-Namensraum}
>
Content: (xs:annotation?, ((xs:attribute | xs:attributeGroup)*, xs:anyAttribute?))
</xs:attributeGroup>May occur within: xs:redefine, xs:schema
Description
Attribute groups are global containers holding groups of attributes. They can manage several attributes often used together, but also provide global access to attributes that cannot be defined globally because they are unqualified or several definitions coexist within one schema; see the example.
Attribute references or local definitions, attribute wildcards and attribute-group references can occur in attribute-group definitions.
Attribute groups can be redefined by xs:redefine elements.
Restrictions
None.
Example
<xs:attributeGroup name="bookAttribute">
<xs:attribute name="id" type="xs:ID"/>
<xs:attribute name="available" type="xs:boolean"/>
</xs:attributeGroup>Attributes
id
Element ID according to W3C XML Schema.
name
Attribute-group name.
Copyright © 2003 O'Reilly Verlag GmbH & Co. KG
You may print the online version for your private use.
Otherwise, this chapter from “XML Schema” is subject to the same conditions as the bound edition. The work, including all its parts, is protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
O’Reilly Verlag GmbH & Co. KG, Balthasarstraße 81, 50670 Köln, kommentar(at)oreilly.de