forked from ILIAS-eLearning/ILIAS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathilias_exp_component_manifest.xsd
51 lines (45 loc) · 1.76 KB
/
ilias_exp_component_manifest.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
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
<xs:element name="Manifest">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="1" maxOccurs="unbounded" ref="ExportFile"/>
</xs:sequence>
<xs:attribute name="MainEntity" type="lowercaseNameString" use="required"/>
<!-- nameString is to strict
<xs:attribute name="Title" type="nameString" use="required"/>
-->
<xs:attribute name="Title" type="xs:string" use="required"/>
<xs:attribute name="InstallationId" type="xs:nonNegativeInteger" use="required"/>
<xs:attribute name="InstallationUrl" type="xs:anyURI" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="ExportFile">
<xs:complexType>
<xs:attribute name="Component" type="componentPath" use="required"/>
<xs:attribute name="Path" type="xmlPath" use="required"/>
</xs:complexType>
</xs:element>
<xs:simpleType name="lowercaseNameString">
<xs:restriction>
<xs:pattern value="[a-z]+"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="nameString">
<xs:restriction>
<xs:pattern value="[A-Z][a-z]+"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="componentPath">
<xs:restriction base="xs:string">
<xs:pattern value="[a-zA-Z]+[/][a-zA-Z]+]"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="xmlPath">
<xs:restriction base="xs:string">
<xs:pattern value="[a-zA-Z0-9/_]+\.xml"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>