Merge pull request #23122 from joseluismarti/bionic
[xbmc.git] / addons / xbmc.python / script.xsd
blob6e8a4af88c21b646858bd8f5958a17fb1b48bc9b
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE schema PUBLIC "-//W3C//DTD XMLSCHEMA 200102//EN" "http://www.w3.org/2001/XMLSchema.dtd">
3 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
4 <xs:element name="extension">
5 <xs:complexType>
6 <xs:sequence>
7 <xs:element name="provides" type="providesList" minOccurs="0" maxOccurs="1"/>
8 </xs:sequence>
9 <xs:attribute name="point" type="xs:string" use="required"/>
10 <xs:attribute name="id" type="simpleIdentifier"/>
11 <xs:attribute name="name" type="xs:string"/>
12 <xs:attribute name="library" type="xs:string" use="required"/>
13 </xs:complexType>
14 </xs:element>
15 <xs:simpleType name="simpleIdentifier">
16 <xs:restriction base="xs:string">
17 <xs:pattern value="xbmc\.(python\.(library|lyrics|module|script|weather)|ui\.screensaver|subtitle\.module)"/>
18 </xs:restriction>
19 </xs:simpleType>
20 <xs:simpleType name="providesList">
21 <xs:list itemType="providesType"/>
22 </xs:simpleType>
23 <xs:simpleType name="providesType">
24 <xs:restriction base="xs:string">
25 <xs:enumeration value="audio"/>
26 <xs:enumeration value="executable"/>
27 <xs:enumeration value="game"/>
28 <xs:enumeration value="image"/>
29 <xs:enumeration value="video"/>
30 </xs:restriction>
31 </xs:simpleType>
32 </xs:schema>