diff options
author | jmarshallnz <jmarshallnz@svn> | 2010-05-25 04:48:37 +0000 |
---|---|---|
committer | jmarshallnz <jmarshallnz@svn> | 2010-05-25 04:48:37 +0000 |
commit | d5314a27a5e4db21e48a197dd7268dfe977e67b2 (patch) | |
tree | 80fed0f3924a64cef3090042a71082e6206a4a5e /addons/xbmc.addon | |
parent | 2014bd31c30bcf7ff7a2649e3838b713b06ab19c (diff) |
added: Initial schemas for metadata and repos
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@30548 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'addons/xbmc.addon')
-rw-r--r-- | addons/xbmc.addon/addon.xml | 8 | ||||
-rw-r--r-- | addons/xbmc.addon/metadata.xsd | 29 | ||||
-rw-r--r-- | addons/xbmc.addon/repository.xsd | 24 |
3 files changed, 61 insertions, 0 deletions
diff --git a/addons/xbmc.addon/addon.xml b/addons/xbmc.addon/addon.xml new file mode 100644 index 0000000000..ac9a69a3f9 --- /dev/null +++ b/addons/xbmc.addon/addon.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<addon id="xbmc.addon" version="1.0" provider-name="Team XBMC"> + <requires> + <import addon="xbmc.core" version="0.1"/> + </requires> + <extension-point id="metadata" schema="metadata.xsd"/> + <extension-point id="repository" schema="repository.xsd"/> +</addon> diff --git a/addons/xbmc.addon/metadata.xsd b/addons/xbmc.addon/metadata.xsd new file mode 100644 index 0000000000..cafc62033d --- /dev/null +++ b/addons/xbmc.addon/metadata.xsd @@ -0,0 +1,29 @@ +<?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:element name="supportedcontent" type="xs:string"/> + <xs:element name="platforms" type="xs:string"/> + <xs:element name="summary" type="translatedString" use="required"/> + <xs:element name="description" type="translatedString"/> + <xs:element name="disclaimer" type="translatedString"/> + <xs:element name="license" type="xs:string"/> + </xs:complexType> + </xs:element> + <xs:simpleType name="simpleIdentifier"> + <xs:restriction base="xs:string"> + <xs:pattern value="[^.]+"/> + </xs:restriction> + </xs:simpleType> + <xs:complexType name="translatedString"> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="lang" type="xs:string"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> +</xs:schema> diff --git a/addons/xbmc.addon/repository.xsd b/addons/xbmc.addon/repository.xsd new file mode 100644 index 0000000000..7ec8141a47 --- /dev/null +++ b/addons/xbmc.addon/repository.xsd @@ -0,0 +1,24 @@ +<?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:element name="info"> + <xs:complexType> + <xs:attribute name="compressed" type="xs:boolean"/> + </xs:complexType> + </xs:element> + <xs:element name="checksum" type="xs:string"/> + <xs:element name="datadir"> + <xs:complexType> + <xs:attribute name="zip" type="xs:boolean"/> + </xs:complexType> + </xs:element> + </xs:complexType> + </xs:element> + <xs:simpleType name="simpleIdentifier"> + <xs:restriction base="xs:string"> + <xs:pattern value="[^.]+"/> + </xs:restriction> + </xs:simpleType> +</xs:schema> |