Sync with 5.4.1
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / xsd / minOccurs_maxOccurs.xsd
CommitLineData
970ed795
EL
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3abe9331 3 Copyright (c) 2000-2015 Ericsson Telecom AB
970ed795
EL
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"
11xmlns:xs="http://www.w3.org/2001/XMLSchema"
12xmlns:groups="www.example.org/groups"
13targetNamespace="www.example.org/minOccurs-maxOccurs">
14
15<import namespace="www.example.org/groups"/>
16
17<annotation><documentation xml:lang="EN">GLOBAL COMPLEX TYPES WITH MIN/MAX OF COMPOSITOR</documentation></annotation>
18
19<complexType name="SeqTypeMin0max0">
20 <sequence minOccurs="0" maxOccurs="0">
21 <element name="elem" type="string"/>
22 </sequence>
23</complexType>
24
25<complexType name="SeqTypeMin0max1">
26 <sequence minOccurs="0" maxOccurs="1">
27 <element name="elem" type="string"/>
28 </sequence>
29</complexType>
30
31<complexType name="SeqTypeMin1max1">
32 <sequence >
33 <element name="elem" type="string"/>
34 </sequence>
35</complexType>
36
37<complexType name="SeqTypeMin0maxU">
38 <sequence minOccurs="0" maxOccurs="unbounded">
39 <element name="elem" type="string"/>
40 </sequence>
41</complexType>
42
43<complexType name="SeqTypeMin1maxU">
44 <sequence minOccurs="1" maxOccurs="unbounded">
45 <element name="elem" type="string"/>
46 </sequence>
47</complexType>
48
49<complexType name="ChoTypeMin0max1">
50 <choice minOccurs="0" maxOccurs="1">
51 <element name="elem1" type="string"/>
52 <element name="elem2" type="string"/>
53 </choice>
54</complexType>
55
56<complexType name="ChoTypeMin0maxU">
57 <choice minOccurs="0" maxOccurs="unbounded">
58 <element name="elem1" type="string"/>
59 <element name="elem2" type="string"/>
60 </choice>
61</complexType>
62
63<complexType name="AllTypeMin0max1">
64 <all minOccurs="0" maxOccurs="1">
65 <element name="elem1" type="string"/>
66 <element name="elem2" type="string"/>
67 </all>
68</complexType>
69
70<annotation><documentation xml:lang="EN">maxOccurs > 1 is not allowed for all</documentation></annotation>
71
72<annotation><documentation xml:lang="EN">GLOBAL GROUPS WITH MIN/MAX OF COMPOSITOR</documentation></annotation>
73<annotation><documentation xml:lang="EN">Note: minOcurs and maxOccurs are not allowed on named group definitions</documentation></annotation>
74
75<group name="SeqGroup">
76 <sequence>
77 <element name="elem" type="string"/>
78 </sequence>
79</group>
80
81<group name="ChoGroup">
82 <choice>
83 <element name="elem" type="string"/>
84 </choice>
85</group>
86
87<group name="AllGroup">
88 <all>
89 <element name="elem" type="string"/>
90 </all>
91</group>
92
93
94
95<complexType name="SeqMixed">
96 <sequence>
97 <element name="min0max0" type="string" minOccurs="0" maxOccurs="0"/>
98 <element name="min0max1" type="string" minOccurs="0" maxOccurs="1"/>
99 <element name="min1max1" type="string" minOccurs="1" maxOccurs="1"/>
100 <element name="min0maxU" type="string" minOccurs="0" maxOccurs="unbounded"/>
101 <element name="min1maxU" type="string" minOccurs="1" maxOccurs="unbounded"/>
102 <element name="nilmin0max1" type="string" minOccurs="0" maxOccurs="1" nillable="true"/>
103 <element name="nilmin0maxU" type="string" minOccurs="0" maxOccurs="unbounded" nillable="true"/>
104 <group ref="groups:shipAndBill" minOccurs="0" maxOccurs="0"/>
105 <group ref="groups:shipAndBill" minOccurs="0" maxOccurs="1"/>
106 <group ref="groups:shipAndBill" minOccurs="1" maxOccurs="1"/>
107 <group ref="groups:shipAndBill" minOccurs="0" maxOccurs="unbounded"/>
108 <group ref="groups:shipAndBill" minOccurs="1" maxOccurs="unbounded"/>
109 <group ref="groups:shipOrBill" minOccurs="0" maxOccurs="1"/>
110 <group ref="groups:shipOrBill" minOccurs="0" maxOccurs="unbounded"/>
111 </sequence>
112</complexType>
113
114
115</schema>
This page took 0.028484 seconds and 5 git commands to generate.