2 Copyright (c) 2000-2015 Ericsson Telecom AB
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
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">
14 <annotation><documentation xml:lang="EN">GLOBAL COMPLEX TYPES WITH MIN/MAX OF COMPOSITOR</documentation></annotation>
16 <complexType name="SeqTypeMin0max0">
17 <sequence minOccurs="0" maxOccurs="0">
18 <element name="elem" type="string"/>
22 <complexType name="SeqTypeMin0max1">
23 <sequence minOccurs="0" maxOccurs="1">
24 <element name="elem" type="string"/>
28 <complexType name="SeqTypeMin1max1">
30 <element name="elem" type="string"/>
34 <complexType name="SeqTypeMin0maxU">
35 <sequence minOccurs="0" maxOccurs="unbounded">
36 <element name="elem" type="string"/>
40 <complexType name="SeqTypeMin1maxU">
41 <sequence minOccurs="1" maxOccurs="unbounded">
42 <element name="elem" type="string"/>
46 <complexType name="ChoTypeMin0max1">
47 <choice minOccurs="0" maxOccurs="1">
48 <element name="elem1" type="string"/>
49 <element name="elem2" type="string"/>
53 <complexType name="ChoTypeMin0maxU">
54 <choice minOccurs="0" maxOccurs="unbounded">
55 <element name="elem1" type="string"/>
56 <element name="elem2" type="string"/>
60 <element name="ChoiceChildMinMax">
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"/>
71 <element name="minOccurs_maxOccurs_frame">
73 <choice minOccurs="0" maxOccurs="unbounded">
74 <element ref="ns38:ChoiceChildMinMax"/>
79 <complexType name="AllTypeMin0max1">
80 <all minOccurs="0" maxOccurs="1">
81 <element name="elem1" type="string"/>
82 <element name="elem2" type="string"/>
86 <annotation><documentation xml:lang="EN">maxOccurs > 1 is not allowed for all</documentation></annotation>
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>
91 <group name="SeqGroup">
93 <element name="elem" type="string"/>
97 <group name="ChoGroup">
99 <element name="elem" type="string"/>
103 <group name="AllGroup">
105 <element name="elem" type="string"/>
111 <complexType name="SeqMixed">
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"/>