1 <?xml version="1.0" encoding="UTF-8"?>
3 Copyright (c) 2000-2015 Ericsson Telecom AB
5 All rights reserved. This program and the accompanying materials
6 are made available under the terms of the Eclipse Public License v1.0
7 which accompanies this distribution, and is available at
8 http://www.eclipse.org/legal/epl-v10.html
10 <schema xmlns="http://www.w3.org/2001/XMLSchema"
11 xmlns:xs="http://www.w3.org/2001/XMLSchema"
12 xmlns:ns="www.example.org/groups"
13 targetNamespace="www.example.org/groups">
15 <annotation><documentation xml:lang="EN">GROUP DEFINITIONS</documentation></annotation>
17 <xs:group name="shipAndBill">
19 <xs:element name="shipTo" type="xs:string"/>
20 <xs:element name="billTo" type="xs:string"/>
24 <xs:group name="shipOrBill">
26 <xs:element name="shipTo" type="xs:string"/>
27 <xs:element name="billTo" type="xs:string"/>
31 <xs:group name="shipAndBillAll">
33 <xs:element name="shipTo" type="xs:string"/>
34 <xs:element name="billTo" type="xs:string"/>
38 <xs:group name="storeAndDeliverAll">
40 <xs:element name="store" type="xs:string"/>
41 <xs:element name="deliver" type="xs:string"/>
45 <annotation><documentation xml:lang="EN">GROUP REFERENCES</documentation></annotation>
47 <annotation><documentation xml:lang="EN">Groups are lonely child of complexType</documentation></annotation>
49 <xs:complexType name="LonelySeqGroup">
50 <annotation><documentation xml:lang="EN">sequence group</documentation></annotation>
51 <xs:group ref="ns:shipAndBill"/>
54 <xs:complexType name="LonelySeqGroupOptional">
55 <annotation><documentation xml:lang="EN">sequence group</documentation></annotation>
56 <xs:group ref="ns:shipAndBill" minOccurs="0"/>
59 <xs:complexType name="LonelySeqGroupRecurrence">
60 <annotation><documentation xml:lang="EN">sequence group</documentation></annotation>
61 <xs:group ref="ns:shipAndBill" minOccurs="0" maxOccurs="unbounded"/>
65 <xs:complexType name="LonelyChoGroup">
66 <annotation><documentation xml:lang="EN">choice group</documentation></annotation>
67 <xs:group ref="ns:shipOrBill"/>
70 <xs:complexType name="LonelyChoGroupOptional">
71 <annotation><documentation xml:lang="EN">choice group</documentation></annotation>
72 <xs:group ref="ns:shipOrBill" minOccurs="0"/>
75 <xs:complexType name="LonelyChoGroupRecurrence">
76 <annotation><documentation xml:lang="EN">choice group</documentation></annotation>
77 <xs:group ref="ns:shipOrBill" minOccurs="0" maxOccurs="unbounded"/>
80 <xs:complexType name="LonelyAllGroup">
81 <annotation><documentation xml:lang="EN">all group</documentation></annotation>
82 <xs:group ref="ns:shipAndBillAll"/>
85 <xs:complexType name="TwoAllGroups">
86 <annotation><documentation xml:lang="EN">all group</documentation></annotation>
87 <xs:group ref="ns:shipAndBillAll"/>
88 <!-- <xs:group ref="ns:storeAndDeliverAll"/> -->
91 <xs:complexType name="LonelyAllGroupOptional">
92 <annotation><documentation xml:lang="EN">all group</documentation></annotation>
93 <xs:group ref="ns:shipAndBillAll" minOccurs="0"/>
96 <xs:complexType name="LonelyAllGroupRecurrence">
97 <annotation><documentation xml:lang="EN">all group</documentation></annotation>
98 <xs:group ref="ns:shipAndBillAll" minOccurs="0" maxOccurs="1"/>
102 <annotation><documentation xml:lang="EN">GROUP REFERENCE IS CHILD OF SEQUENCE</documentation></annotation>
104 <annotation><documentation xml:lang="EN">sequence group, lonely nested in sequence</documentation></annotation>
106 <xs:complexType name="SeqGroupInSequence">
108 <annotation><documentation xml:lang="EN">sequence group</documentation></annotation>
109 <xs:group ref="ns:shipAndBill"/>
113 <annotation><documentation xml:lang="EN">sequence group, elements nested in sequence</documentation></annotation>
115 <xs:complexType name="SeqGroupAndElementsInSequence">
117 <annotation><documentation xml:lang="EN">sequence group</documentation></annotation>
118 <xs:group ref="ns:shipAndBill"/>
119 <xs:element name="singleUSAddress" type="xs:string"/>
120 <xs:element name="comment" minOccurs="0" type="xs:string"/>
121 <xs:element name="items" type="xs:string"/>
125 <xs:complexType name="ElementsAndSeqGroupInSequence">
127 <annotation><documentation xml:lang="EN">sequence group</documentation></annotation>
128 <xs:element name="singleUSAddress" type="xs:string"/>
129 <xs:element name="comment" minOccurs="0" type="xs:string"/>
130 <xs:element name="items" type="xs:string"/>
131 <xs:group ref="ns:shipAndBill"/>
135 <xs:complexType name="SeqGroupAndElementsAndAttributeInSequence">
137 <annotation><documentation xml:lang="EN">sequence group</documentation></annotation>
138 <xs:group ref="ns:shipAndBill"/>
139 <xs:element name="singleUSAddress" type="xs:string"/>
140 <xs:element name="comment" minOccurs="0" type="xs:string"/>
141 <xs:element name="items" type="xs:string"/>
143 <xs:attribute name="orderDate" type="xs:date"/>
147 <annotation><documentation xml:lang="EN">sequence group, elements and attributes nested in choice</documentation></annotation>
149 <xs:complexType name="SeqGroupAndElementsAndAttributeInChoice">
151 <annotation><documentation xml:lang="EN">sequence group</documentation></annotation>
152 <xs:group ref="ns:shipAndBill"/>
153 <xs:element name="singleUSAddress" type="xs:string"/>
154 <xs:element name="comment" minOccurs="0" type="xs:string"/>
155 <xs:element name="items" type="xs:string"/>
157 <xs:attribute name="orderDate" type="xs:date"/>
160 <annotation><documentation xml:lang="EN">choice group, elements and attributes nested in choice</documentation></annotation>
162 <xs:complexType name="ChoGroupAndElementsAndAttributeInSequence">
164 <xs:group ref="ns:shipOrBill"/>
165 <xs:element name="singleUSAddress" type="xs:string"/>
166 <xs:element name="comment" minOccurs="0" type="xs:string"/>
167 <xs:element name="items" type="xs:string"/>
169 <xs:attribute name="orderDate" type="xs:date"/>
172 <xs:complexType name="ChoGroupAndElementsAndAttributeInChoice">
174 <xs:group ref="ns:shipOrBill"/>
175 <xs:element name="singleUSAddress" type="xs:string"/>
176 <xs:element name="comment" minOccurs="0" type="xs:string"/>
177 <xs:element name="items" type="xs:string"/>
179 <xs:attribute name="orderDate" type="xs:date"/>
182 <xs:complexType name="ChoGroupAndElementsInChoice">
184 <xs:group ref="ns:shipOrBill"/>
185 <xs:element name="singleUSAddress" type="xs:string"/>
186 <xs:element name="comment" minOccurs="0" type="xs:string"/>
187 <xs:element name="items" type="xs:string"/>
191 <xs:complexType name="ElementsAndAttributeInSequence">
193 <xs:element name="singleUSAddress" type="xs:string"/>
194 <xs:element name="comment" minOccurs="0" type="xs:string"/>
195 <xs:element name="items" type="xs:string"/>
197 <xs:attribute name="orderDate" type="xs:date"/>
200 <xs:complexType name="ElementsAndAttributeInChoice">
202 <xs:element name="singleUSAddress" type="xs:string"/>
203 <xs:element name="comment" minOccurs="0" type="xs:string"/>
204 <xs:element name="items" type="xs:string"/>
206 <xs:attribute name="orderDate" type="xs:date"/>
209 <xs:complexType name="SeqGroupInNestedChoiceElementsAndAttributeInSequence">
212 <xs:group ref="ns:shipAndBill"/>
213 <xs:element name="singleUSAddress" type="xs:string"/>
215 <xs:element name="comment" minOccurs="0" type="xs:string"/>
216 <xs:element name="items" type="xs:string"/>
218 <xs:attribute name="orderDate" type="xs:date"/>
221 <xs:complexType name="ChoGroupInNestedChoiceElementsAndAttributeInSequence">
224 <xs:group ref="ns:shipOrBill"/>
225 <xs:element name="singleUSAddress" type="xs:string"/>
227 <xs:element name="comment" minOccurs="0" type="xs:string"/>
228 <xs:element name="items" type="xs:string"/>
230 <xs:attribute name="orderDate" type="xs:date"/>