XML technologies / XML Schema / XML Schema element reference / xs:sequence (within a group)
(Excerpt from “XML Schema” by Eric van der Vlist)
Compositor defining an ordered group of elements. Occurrence frequency cannot be specified when xs:select is used within a group.
<xs:sequence
id = xs:ID
{beliebige Attribute mit einem Nicht-Schema-Namensraum}
>
Content: (xs:annotation?, (xs:element | xs:group | xs:choice | xs:sequence | xs:any) )*)
</xs:sequence>May occur within: xs:group (definition)
Description
This compositor defines ordered lists of elements.
Restrictions
xs:sequence must not use xs:all compositors.
When xs:sequence is used outside an xs:group compositor, its content model differs slightly; see xs:sequence (outside a group).
Example
<xs:group name="name">
<xs:sequence>
<xs:element ref="name"/>
<xs:sequence minOccurs="0">
<xs:element ref="middle-name" minOccurs="0"/>
<xs:element ref="last-name"/>
</xs:sequence>
</xs:sequence>
</xs:group>Attributes
id
Element ID according to W3C XML Schema.
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