-
Notifications
You must be signed in to change notification settings - Fork 29
/
institute.xsd
42 lines (40 loc) · 1.49 KB
/
institute.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
<?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"
xmlns:tp="http://educations.com/XmlImport/Text-Property"
>
<xs:include schemaLocation="institute.xsd" />
<xs:include schemaLocation="education.xsd" />
<xs:include schemaLocation="location.xsd" />
<xs:include schemaLocation="text-property.xsd" />
<xs:complexType name="Institute">
<xs:all>
<xs:element name="educations">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="education" type="Education" />
</xs:sequence>
</xs:complexType>
<xs:unique name="unique-education-id">
<xs:selector xpath="xi:education" />
<xs:field xpath="@uniqueIdentifier" />
</xs:unique>
</xs:element>
<xs:element name="locations">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="location" type="Location" />
</xs:sequence>
</xs:complexType>
<xs:unique name="unique-location-id">
<xs:selector xpath="xi:location" />
<xs:field xpath="@uniqueIdentifier" />
</xs:unique>
</xs:element>
</xs:all>
<xs:attribute name="id" type="xs:int" use="required" />
</xs:complexType>
</xs:schema>