-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathcourse-text-property.xsd
54 lines (50 loc) · 1.84 KB
/
course-text-property.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
<?xml version="1.0" encoding="utf-8"?>
<xs:schema targetNamespace="http://educations.com/XmlImport"
elementFormDefault="qualified"
xmlns="http://educations.com/XmlImport"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
>
<xs:complexType name="CourseTextProperty" abstract="true">
<xs:simpleContent>
<xs:extension base="xs:string" />
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="default">
<xs:simpleContent>
<xs:extension base="CourseTextProperty">
<xs:attribute name="name" type="CourseDefaultTextPropertyKey" use="required" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="custom">
<xs:simpleContent>
<xs:extension base="CourseTextProperty">
<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="isHtml" type="xs:boolean" use="optional" default="false" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:simpleType name="CourseDefaultTextPropertyKey">
<xs:restriction base="xs:string">
<xs:enumeration value="description" />
<xs:enumeration value="qualification" />
<xs:enumeration value="platform" />
<xs:enumeration value="degree" />
<xs:enumeration value="continuing" />
<xs:enumeration value="detailedCost" />
<xs:enumeration value="technicalPrerequisites" />
<xs:enumeration value="applicationDeadline" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="CourseTextPropertyList">
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="field" type="CourseTextProperty" />
</xs:sequence>
</xs:complexType>
</xs:schema>