-
Notifications
You must be signed in to change notification settings - Fork 0
/
people.xsd
43 lines (41 loc) · 1.65 KB
/
people.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name='people'>
<xs:complexType>
<xs:sequence>
<xs:element name='person' type='PersonType' minOccurs='0'
maxOccurs='unbounded'/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="PersonType">
<xs:sequence>
<xs:element name="birthYear">
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:minInclusive value="1900"/>
<xs:maxInclusive value="2001"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="name" type="xs:string"/>
<xs:element name="surname" type="xs:string"/>
<xs:element name="propositions" >
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="proposition" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="demands">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="demand" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="fullName" type="xs:string"/>
</xs:sequence>
<xs:attribute name='id' type='xs:positiveInteger'/>
</xs:complexType>
</xs:schema>