Skip to content

Commit

Permalink
[ADDONS] add context addon .xsd definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
Fice committed Nov 5, 2014
1 parent c4c50a6 commit eba1de1
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addons/xbmc.addon/addon.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@
</requires>
<extension-point id="metadata" schema="metadata.xsd"/>
<extension-point id="repository" schema="repository.xsd"/>
<extension-point id="context.item" schema="contextitem.xsd"/>
<extension-point id="context.category" schema="contextcategory.xsd"/>
</addon>
19 changes: 19 additions & 0 deletions addons/xbmc.addon/contextcategory.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?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:attribute name="point" type="xs:string" use="required"/>
<xs:attribute name="id" type="simpleIdentifier"/>
<xs:attribute name="name" type="xs:string"/>
<xs:attribute name="label" type="xs:string"/>
<xs:attribute name="visible" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:simpleType name="simpleIdentifier">
<xs:restriction base="xs:string">
<xs:pattern value="[^.]+"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>

20 changes: 20 additions & 0 deletions addons/xbmc.addon/contextitem.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?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:attribute name="point" type="xs:string" use="required"/>
<xs:attribute name="id" type="simpleIdentifier"/>
<xs:attribute name="name" type="xs:string"/>
<xs:attribute name="library" type="xs:string" use="required"/>
<xs:attribute name="label" type="xs:string"/>
<xs:attribute name="visible" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:simpleType name="simpleIdentifier">
<xs:restriction base="xs:string">
<xs:pattern value="[^.]+"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>

0 comments on commit eba1de1

Please sign in to comment.