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">
7 <xs:element name=
"menu" type=
"menuType" minOccurs=
"1" maxOccurs=
"unbounded"/>
9 <xs:attribute name=
"point" type=
"pointIdentifier" use=
"required"/>
10 <xs:attribute name=
"id" type=
"menuIdentifier"/>
13 <xs:complexType name=
"itemType">
15 <xs:element name=
"label" type=
"xs:string" minOccurs=
"1"/>
16 <xs:element name=
"visible" type=
"xs:string" minOccurs=
"1"/>
18 <xs:attribute name=
"library" type=
"xs:string" use=
"required"/>
20 <xs:complexType name=
"menuType">
21 <xs:choice maxOccurs=
"unbounded">
22 <xs:element name=
"label" type=
"xs:string" minOccurs=
"0"/>
23 <xs:element name=
"item" type=
"itemType" minOccurs=
"0" maxOccurs=
"unbounded"/>
24 <xs:element name=
"menu" type=
"menuType" minOccurs=
"0" maxOccurs=
"unbounded"/>
26 <xs:attribute name=
"id" type=
"xs:string"/>
28 <xs:simpleType name=
"pointIdentifier">
29 <xs:restriction base=
"xs:string">
30 <xs:pattern value=
"kodi\.context\.item"/>
33 <xs:simpleType name=
"menuIdentifier">
34 <xs:restriction base=
"xs:string">
35 <xs:pattern value=
"kodi\.core\.(manage|main)"/>