Statistics
| Branch: | Tag: | Revision:

root / djnro / templates / general / institution.xsd @ d3ea44a4

History | View | Annotate | Download (5.3 kB)

1
<?xml version="1.0" encoding="UTF-8"?>
2
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
3
	<xs:simpleType name="eduroam_institution_type">
4
		<xs:restriction base="xs:int">
5
			<xs:enumeration value="1">
6
				<xs:annotation>
7
					<xs:documentation>IdP</xs:documentation>
8
				</xs:annotation>
9
			</xs:enumeration>
10
			<xs:enumeration value="2">
11
				<xs:annotation>
12
					<xs:documentation>SP</xs:documentation>
13
				</xs:annotation>
14
			</xs:enumeration>
15
			<xs:enumeration value="3">
16
				<xs:annotation>
17
					<xs:documentation>SPIdP</xs:documentation>
18
				</xs:annotation>
19
			</xs:enumeration>
20
		</xs:restriction>
21

    
22
	</xs:simpleType>
23

    
24
	<xs:element name="institutions">
25
		<xs:complexType>
26
			<xs:sequence maxOccurs="unbounded">
27
				<xs:element name="institution">
28
					<xs:complexType>
29
						<xs:sequence>
30
							<xs:element name="country" type="xs:string"/>
31
							<xs:element name="type" type="eduroam_institution_type"/>
32
							<xs:element name="inst_realm" type="xs:string" maxOccurs="unbounded" minOccurs="0"/>
33
							<xs:element name="org_name" minOccurs="1" maxOccurs="unbounded">
34
								<xs:complexType>
35
									<xs:simpleContent>
36
										<xs:extension base="xs:string">
37
											<xs:attribute name="lang" type="xs:string" use="required"/>
38
										</xs:extension>
39
									</xs:simpleContent>
40
								</xs:complexType>
41
							</xs:element>
42
							<xs:element name="address">
43
								<xs:complexType>
44
									<xs:sequence>
45
										<xs:element name="street" type="xs:string"/>
46
										<xs:element name="city" type="xs:string"/>
47
									</xs:sequence>
48
								</xs:complexType>
49
							</xs:element>
50
							<xs:element name="contact" maxOccurs="unbounded">
51
								<xs:complexType>
52
									<xs:sequence>
53
										<xs:element name="name" type="xs:string"/>
54
										<xs:element name="email" type="xs:string"/>
55
										<xs:element name="phone" type="xs:string"/>
56
									</xs:sequence>
57
								</xs:complexType>
58
							</xs:element>
59
							<xs:element name="info_URL" minOccurs="1" maxOccurs="unbounded">
60
								<xs:complexType>
61
									<xs:simpleContent>
62
										<xs:extension base="xs:anyURI">
63
											<xs:attribute name="lang" type="xs:string" use="required"/>
64
										</xs:extension>
65
									</xs:simpleContent>
66
								</xs:complexType>
67
							</xs:element>
68
							<xs:element name="policy_URL" maxOccurs="unbounded">
69
								<xs:complexType>
70
									<xs:simpleContent>
71
										<xs:extension base="xs:anyURI">
72
											<xs:attribute name="lang" type="xs:string" use="required"/>
73
										</xs:extension>
74
									</xs:simpleContent>
75
								</xs:complexType>
76
							</xs:element>
77
							<xs:element name="ts" type="xs:dateTime">
78
								<xs:annotation>
79
									<xs:documentation> Format: 2008-02-29T12:00:00 </xs:documentation>
80
								</xs:annotation>
81
							</xs:element>
82

    
83
							<xs:element name="location" maxOccurs="unbounded" minOccurs="0">
84
								<xs:complexType>
85
									<xs:sequence>										
86
										<xs:element name="longitude" type="xs:string"/>
87
										<xs:element name="latitude" type="xs:string"/>
88
										<xs:element name="loc_name" minOccurs="0" maxOccurs="unbounded">
89
											<xs:complexType>
90
												<xs:simpleContent>
91
													<xs:extension base="xs:string">
92
														<xs:attribute name="lang" type="xs:string" use="required"/>
93
													</xs:extension>
94
												</xs:simpleContent>
95
											</xs:complexType>
96
										</xs:element>
97
										<xs:element name="address">
98
											<xs:complexType>
99
												<xs:sequence>
100
													<xs:element name="street" type="xs:string"/>
101
													<xs:element name="city" type="xs:string"/>
102
												</xs:sequence>
103
											</xs:complexType>
104
										</xs:element>
105
										<xs:element name="contact" maxOccurs="unbounded" minOccurs="0">
106
											<xs:complexType>
107
												<xs:sequence>
108
													<xs:element name="name" type="xs:string"/>
109
													<xs:element name="email" type="xs:string"/>
110
													<xs:element name="phone" type="xs:string"/>
111
												</xs:sequence>
112
											</xs:complexType>
113
										</xs:element>
114
										<xs:element name="SSID" type="xs:string"/>
115
										<xs:element name="enc_level" type="xs:string"/>
116
										<xs:element name="port_restrict" type="xs:boolean" default="0"/>
117
										<xs:element name="transp_proxy" type="xs:boolean" default="0" minOccurs="0"/>
118
										<xs:element name="IPv6" type="xs:boolean" default="0" minOccurs="0"/>
119
										<xs:element name="NAT" type="xs:boolean" default="0" minOccurs="0"/>
120
										<xs:element name="AP_no" type="xs:int" minOccurs="0"/>
121
										<xs:element name="wired" type="xs:boolean" default="0" minOccurs="0"/>
122
										<xs:element name="info_URL" minOccurs="0" maxOccurs="unbounded">
123
											<xs:complexType>
124
												<xs:simpleContent>
125
													<xs:extension base="xs:anyURI">
126
														<xs:attribute name="lang" type="xs:string" use="required"/>
127
													</xs:extension>
128
												</xs:simpleContent>
129
											</xs:complexType>
130
										</xs:element>
131
									</xs:sequence>
132
								</xs:complexType>
133
							</xs:element>
134
						</xs:sequence>
135
					</xs:complexType>
136
				</xs:element>
137
			</xs:sequence>
138
		</xs:complexType>
139
	</xs:element>
140
</xs:schema>