summaryrefslogtreecommitdiffstats
path: root/addons/xbmc.python/contextitem.xsd
blob: cc9bbcbb1a7028272729390230f4ebe4e3fe9ab3 (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
<?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:sequence>
        <xs:element name="menu" type="menuType" minOccurs="1" maxOccurs="unbounded"/>
      </xs:sequence>
      <xs:attribute name="point" type="pointIdentifier" use="required"/>
      <xs:attribute name="id" type="menuIdentifier"/>
    </xs:complexType>
  </xs:element>
  <xs:complexType name="itemType">
    <xs:all>
      <xs:element name="label" type="xs:string" minOccurs="1"/>
      <xs:element name="visible" type="xs:string" minOccurs="1"/>
    </xs:all>
    <xs:attribute name="library" type="xs:string" use="required"/>
  </xs:complexType>
  <xs:complexType name="menuType">
    <xs:choice maxOccurs="unbounded">
      <xs:element name="label" type="xs:string" minOccurs="0"/>
      <xs:element name="item" type="itemType" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="menu" type="menuType" minOccurs="0" maxOccurs="unbounded"/>
    </xs:choice>
    <xs:attribute name="id" type="xs:string"/>
  </xs:complexType>
  <xs:simpleType name="pointIdentifier">
    <xs:restriction base="xs:string">
      <xs:pattern value="kodi\.context\.item"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="menuIdentifier">
    <xs:restriction base="xs:string">
      <xs:pattern value="kodi\.core\.(manage|main)"/>
    </xs:restriction>
  </xs:simpleType>
</xs:schema>