aboutsummaryrefslogtreecommitdiff
path: root/addons/xbmc.addon/repository.xsd
blob: 70a35f783c5e92fdffdb18b5738e0cd56dd6daf7 (plain)
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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE schema PUBLIC "-//W3C//DTD XMLSCHEMA 200102//EN" "http://www.w3.org/2001/XMLSchema.dtd">
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="extension">
    <xs:complexType>
      <xs:complexContent>
        <xs:extension base="repositorydirectory">
          <xs:sequence>
            <xs:element name="dir" type="repositorydirectory" minOccurs="1" maxOccurs="unbounded"/>
          </xs:sequence>
          <xs:attribute name="point" type="xs:string" use="required"/>
          <xs:attribute name="id" type="simpleIdentifier"/>
          <xs:attribute name="name" type="xs:string"/>
        </xs:extension>
      </xs:complexContent>
    </xs:complexType>
  </xs:element>
  <xs:complexType name="repositorydirectory">
    <xs:sequence>
      <xs:element name="info">
        <xs:complexType>
          <xs:simpleContent>
            <xs:extension base="xs:string">
              <xs:attribute name="compressed" type="xs:boolean"/>
            </xs:extension>
          </xs:simpleContent>
        </xs:complexType>
      </xs:element>
      <xs:element name="checksum" type="xs:string"/>
      <xs:element name="datadir">
        <xs:complexType>
          <xs:simpleContent>
            <xs:extension base="xs:string">
              <xs:attribute name="zip" type="xs:boolean"/>
            </xs:extension>
          </xs:simpleContent>
        </xs:complexType>
      </xs:element>
      <xs:element name="hashes" type="xs:boolean"/>
    </xs:sequence>
    <xs:attribute name="minversion" type="xs:string"/>
  </xs:complexType>
  <xs:simpleType name="simpleIdentifier">
    <xs:restriction base="xs:string">
      <xs:pattern value="[^.]+"/>
    </xs:restriction>
  </xs:simpleType>
</xs:schema>