Titan Core Initial Contribution
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / xsd / groups.xsd
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Copyright (c) 2000-2014 Ericsson Telecom AB
4
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
9 -->
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">
14
15 <annotation><documentation xml:lang="EN">GROUP DEFINITIONS</documentation></annotation>
16
17 <xs:group name="shipAndBill">
18 <xs:sequence>
19 <xs:element name="shipTo" type="xs:string"/>
20 <xs:element name="billTo" type="xs:string"/>
21 </xs:sequence>
22 </xs:group>
23
24 <xs:group name="shipOrBill">
25 <xs:choice>
26 <xs:element name="shipTo" type="xs:string"/>
27 <xs:element name="billTo" type="xs:string"/>
28 </xs:choice>
29 </xs:group>
30
31 <xs:group name="shipAndBillAll">
32 <xs:all>
33 <xs:element name="shipTo" type="xs:string"/>
34 <xs:element name="billTo" type="xs:string"/>
35 </xs:all>
36 </xs:group>
37
38 <xs:group name="storeAndDeliverAll">
39 <xs:all>
40 <xs:element name="store" type="xs:string"/>
41 <xs:element name="deliver" type="xs:string"/>
42 </xs:all>
43 </xs:group>
44
45 <annotation><documentation xml:lang="EN">GROUP REFERENCES</documentation></annotation>
46
47 <annotation><documentation xml:lang="EN">Groups are lonely child of complexType</documentation></annotation>
48
49 <xs:complexType name="LonelySeqGroup">
50 <annotation><documentation xml:lang="EN">sequence group</documentation></annotation>
51 <xs:group ref="ns:shipAndBill"/>
52 </xs:complexType>
53
54 <xs:complexType name="LonelySeqGroupOptional">
55 <annotation><documentation xml:lang="EN">sequence group</documentation></annotation>
56 <xs:group ref="ns:shipAndBill" minOccurs="0"/>
57 </xs:complexType>
58
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"/>
62 </xs:complexType>
63
64
65 <xs:complexType name="LonelyChoGroup">
66 <annotation><documentation xml:lang="EN">choice group</documentation></annotation>
67 <xs:group ref="ns:shipOrBill"/>
68 </xs:complexType>
69
70 <xs:complexType name="LonelyChoGroupOptional">
71 <annotation><documentation xml:lang="EN">choice group</documentation></annotation>
72 <xs:group ref="ns:shipOrBill" minOccurs="0"/>
73 </xs:complexType>
74
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"/>
78 </xs:complexType>
79
80 <xs:complexType name="LonelyAllGroup">
81 <annotation><documentation xml:lang="EN">all group</documentation></annotation>
82 <xs:group ref="ns:shipAndBillAll"/>
83 </xs:complexType>
84
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"/> -->
89 </xs:complexType>
90
91 <xs:complexType name="LonelyAllGroupOptional">
92 <annotation><documentation xml:lang="EN">all group</documentation></annotation>
93 <xs:group ref="ns:shipAndBillAll" minOccurs="0"/>
94 </xs:complexType>
95
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"/>
99 </xs:complexType>
100
101
102 <annotation><documentation xml:lang="EN">GROUP REFERENCE IS CHILD OF SEQUENCE</documentation></annotation>
103
104 <annotation><documentation xml:lang="EN">sequence group, lonely nested in sequence</documentation></annotation>
105
106 <xs:complexType name="SeqGroupInSequence">
107 <xs:sequence>
108 <annotation><documentation xml:lang="EN">sequence group</documentation></annotation>
109 <xs:group ref="ns:shipAndBill"/>
110 </xs:sequence>
111 </xs:complexType>
112
113 <annotation><documentation xml:lang="EN">sequence group, elements nested in sequence</documentation></annotation>
114
115 <xs:complexType name="SeqGroupAndElementsInSequence">
116 <xs:sequence>
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"/>
122 </xs:sequence>
123 </xs:complexType>
124
125 <xs:complexType name="ElementsAndSeqGroupInSequence">
126 <xs:sequence>
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"/>
132 </xs:sequence>
133 </xs:complexType>
134
135 <xs:complexType name="SeqGroupAndElementsAndAttributeInSequence">
136 <xs:sequence>
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"/>
142 </xs:sequence>
143 <xs:attribute name="orderDate" type="xs:date"/>
144 </xs:complexType>
145
146
147 <annotation><documentation xml:lang="EN">sequence group, elements and attributes nested in choice</documentation></annotation>
148
149 <xs:complexType name="SeqGroupAndElementsAndAttributeInChoice">
150 <xs:choice>
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"/>
156 </xs:choice>
157 <xs:attribute name="orderDate" type="xs:date"/>
158 </xs:complexType>
159
160 <annotation><documentation xml:lang="EN">choice group, elements and attributes nested in choice</documentation></annotation>
161
162 <xs:complexType name="ChoGroupAndElementsAndAttributeInSequence">
163 <xs:sequence>
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"/>
168 </xs:sequence>
169 <xs:attribute name="orderDate" type="xs:date"/>
170 </xs:complexType>
171
172 <xs:complexType name="ChoGroupAndElementsAndAttributeInChoice">
173 <xs:choice>
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"/>
178 </xs:choice>
179 <xs:attribute name="orderDate" type="xs:date"/>
180 </xs:complexType>
181
182 <xs:complexType name="ChoGroupAndElementsInChoice">
183 <xs:choice>
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"/>
188 </xs:choice>
189 </xs:complexType>
190
191 <xs:complexType name="ElementsAndAttributeInSequence">
192 <xs:sequence>
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"/>
196 </xs:sequence>
197 <xs:attribute name="orderDate" type="xs:date"/>
198 </xs:complexType>
199
200 <xs:complexType name="ElementsAndAttributeInChoice">
201 <xs:choice>
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"/>
205 </xs:choice>
206 <xs:attribute name="orderDate" type="xs:date"/>
207 </xs:complexType>
208
209 <xs:complexType name="SeqGroupInNestedChoiceElementsAndAttributeInSequence">
210 <xs:sequence>
211 <xs:choice>
212 <xs:group ref="ns:shipAndBill"/>
213 <xs:element name="singleUSAddress" type="xs:string"/>
214 </xs:choice>
215 <xs:element name="comment" minOccurs="0" type="xs:string"/>
216 <xs:element name="items" type="xs:string"/>
217 </xs:sequence>
218 <xs:attribute name="orderDate" type="xs:date"/>
219 </xs:complexType>
220
221 <xs:complexType name="ChoGroupInNestedChoiceElementsAndAttributeInSequence">
222 <xs:sequence>
223 <xs:choice>
224 <xs:group ref="ns:shipOrBill"/>
225 <xs:element name="singleUSAddress" type="xs:string"/>
226 </xs:choice>
227 <xs:element name="comment" minOccurs="0" type="xs:string"/>
228 <xs:element name="items" type="xs:string"/>
229 </xs:sequence>
230 <xs:attribute name="orderDate" type="xs:date"/>
231 </xs:complexType>
232
233
234 </schema>
235
This page took 0.035695 seconds and 5 git commands to generate.