-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathlocation.xsd
107 lines (104 loc) · 4.59 KB
/
location.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<?xml version="1.0" encoding="utf-8"?>
<xs:schema targetNamespace="http://educations.com/XmlImport" elementFormDefault="qualified"
xmlns="http://educations.com/XmlImport"
xmlns:xi="http://educations.com/XmlImport"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType name="Location">
<xs:all>
<xs:element name="place" minOccurs="1" maxOccurs="1">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="128" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="visitingAddress" type="Address" minOccurs="0" maxOccurs="1" />
<xs:element name="mailAddress" type="Address" minOccurs="0" maxOccurs="1" />
<xs:element name="coordinates" type="Coordinates" minOccurs="0" maxOccurs="1" />
<xs:element name="description" type="xs:string" minOccurs="0" maxOccurs="1" />
<xs:element name="residentialInformation" type="xs:string" minOccurs="0" maxOccurs="1" />
<xs:element name="contacts" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:attribute name="telephone" use="optional">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="64" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="fax" use="optional">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="64" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="email" use="optional">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:all>
<xs:attribute name="name" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="128" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="uniqueIdentifier" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="128" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="hasAccomodation" type="xs:boolean" use="optional" />
<xs:attribute name="isFoodProvided" type="xs:boolean" use="optional" />
</xs:complexType>
<xs:complexType name="Address">
<xs:attribute name="street" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="256" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="co" use="optional">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="64" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="city" use="optional">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="128" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="zip" use="optional">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="128" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="country" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="128" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
<xs:complexType name="Coordinates">
<xs:attribute name="latitude" type="xs:double" use="required" />
<xs:attribute name="longitude" type="xs:double" use="required" />
</xs:complexType>
</xs:schema>