-
Notifications
You must be signed in to change notification settings - Fork 4
/
tools_archive_info.xsd
45 lines (40 loc) · 1.28 KB
/
tools_archive_info.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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<!-- definition of simple elements -->
<xs:element name="id" type="xs:string" />
<xs:element name="name" type="xs:string" />
<xs:element name="version" type="xs:string" />
<xs:element name="website" type="xs:string" />
<xs:element name="type" type="xs:string" />
<xs:element name="link" type="xs:string" />
<!-- definition of attributes -->
<xs:attribute name="fileName" type="xs:string"/>
<!-- definition of complex elements -->
<xs:element name="license">
<xs:complexType>
<xs:sequence>
<xs:element ref="type" maxOccurs="unbounded" />
<xs:element ref="link" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="tool">
<xs:complexType>
<xs:sequence>
<xs:element ref="id" />
<xs:element ref="name" />
<xs:element ref="version" />
<xs:element ref="website" minOccurs="0" />
<xs:element ref="license" minOccurs="0" />
</xs:sequence>
<xs:attribute ref="fileName" use="required" />
</xs:complexType>
</xs:element>
<xs:element name="tools">
<xs:complexType>
<xs:sequence>
<xs:element ref="tool" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>