Sync with 5.4.0
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / XmlTest_xsds / XmlTest_complex_minOccursMaxOccurs.xsd
1 <!--
2 Copyright (c) 2000-2015 Ericsson Telecom AB
3
4 All rights reserved. This program and the accompanying materials
5 are made available under the terms of the Eclipse Public License v1.0
6 which accompanies this distribution, and is available at
7 http://www.eclipse.org/legal/epl-v10.html
8 -->
9 <schema xmlns="http://www.w3.org/2001/XMLSchema"
10 xmlns:groups="www.example.org/groups"
11 xmlns:ns38="www.XmlTest.org/complex_minOccursMaxOccurs"
12 targetNamespace="www.XmlTest.org/complex_minOccursMaxOccurs">
13
14 <annotation><documentation xml:lang="EN">GLOBAL COMPLEX TYPES WITH MIN/MAX OF COMPOSITOR</documentation></annotation>
15
16 <complexType name="SeqTypeMin0max0">
17 <sequence minOccurs="0" maxOccurs="0">
18 <element name="elem" type="string"/>
19 </sequence>
20 </complexType>
21
22 <complexType name="SeqTypeMin0max1">
23 <sequence minOccurs="0" maxOccurs="1">
24 <element name="elem" type="string"/>
25 </sequence>
26 </complexType>
27
28 <complexType name="SeqTypeMin1max1">
29 <sequence >
30 <element name="elem" type="string"/>
31 </sequence>
32 </complexType>
33
34 <complexType name="SeqTypeMin0maxU">
35 <sequence minOccurs="0" maxOccurs="unbounded">
36 <element name="elem" type="string"/>
37 </sequence>
38 </complexType>
39
40 <complexType name="SeqTypeMin1maxU">
41 <sequence minOccurs="1" maxOccurs="unbounded">
42 <element name="elem" type="string"/>
43 </sequence>
44 </complexType>
45
46 <complexType name="ChoTypeMin0max1">
47 <choice minOccurs="0" maxOccurs="1">
48 <element name="elem1" type="string"/>
49 <element name="elem2" type="string"/>
50 </choice>
51 </complexType>
52
53 <complexType name="ChoTypeMin0maxU">
54 <choice minOccurs="0" maxOccurs="unbounded">
55 <element name="elem1" type="string"/>
56 <element name="elem2" type="string"/>
57 </choice>
58 </complexType>
59
60 <element name="ChoiceChildMinMax">
61 <complexType>
62 <choice>
63 <element name="elem0" type="string" minOccurs="1" maxOccurs="5"/>
64 <element name="elem1" type="string" minOccurs="0" />
65 <element name="elem2" type="string" minOccurs="0" />
66 <element name="elem3" type="string" minOccurs="0" maxOccurs="unbounded"/>
67 </choice>
68 </complexType>
69 </element>
70
71 <element name="minOccurs_maxOccurs_frame">
72 <complexType>
73 <choice minOccurs="0" maxOccurs="unbounded">
74 <element ref="ns38:ChoiceChildMinMax"/>
75 </choice>
76 </complexType>
77 </element>
78
79 <complexType name="AllTypeMin0max1">
80 <all minOccurs="0" maxOccurs="1">
81 <element name="elem1" type="string"/>
82 <element name="elem2" type="string"/>
83 </all>
84 </complexType>
85
86 <annotation><documentation xml:lang="EN">maxOccurs > 1 is not allowed for all</documentation></annotation>
87
88 <annotation><documentation xml:lang="EN">GLOBAL GROUPS WITH MIN/MAX OF COMPOSITOR</documentation></annotation>
89 <annotation><documentation xml:lang="EN">Note: minOcurs and maxOccurs are not allowed on named group definitions</documentation></annotation>
90
91 <group name="SeqGroup">
92 <sequence>
93 <element name="elem" type="string"/>
94 </sequence>
95 </group>
96
97 <group name="ChoGroup">
98 <choice>
99 <element name="elem" type="string"/>
100 </choice>
101 </group>
102
103 <group name="AllGroup">
104 <all>
105 <element name="elem" type="string"/>
106 </all>
107 </group>
108
109
110
111 <complexType name="SeqMixed">
112 <sequence>
113 <element name="min0max0" type="string" minOccurs="0" maxOccurs="0"/>
114 <element name="min0max1" type="string" minOccurs="0" maxOccurs="1"/>
115 <element name="min1max1" type="string" minOccurs="1" maxOccurs="1"/>
116 <element name="min0maxU" type="string" minOccurs="0" maxOccurs="unbounded"/>
117 <element name="min1maxU" type="string" minOccurs="1" maxOccurs="unbounded"/>
118 <element name="nilmin0max1" type="string" minOccurs="0" maxOccurs="1" nillable="true"/>
119 <element name="nilmin0maxU" type="string" minOccurs="0" maxOccurs="unbounded" nillable="true"/>
120 <element name="Item" type="string" minOccurs="0" maxOccurs="0"/>
121 <element name="Item" type="string" minOccurs="0" maxOccurs="1"/>
122 <element name="Item" type="string" minOccurs="1" maxOccurs="1"/>
123 </sequence>
124 </complexType>
125
126
127 </schema>
This page took 0.06216 seconds and 5 git commands to generate.