diff options
author | jmarshallnz <jmarshallnz@svn> | 2010-05-27 00:13:21 +0000 |
---|---|---|
committer | jmarshallnz <jmarshallnz@svn> | 2010-05-27 00:13:21 +0000 |
commit | 9d9704e40f9d9c5a281ee726de99b5c4e6341638 (patch) | |
tree | bf77f19f64c5403e21eb41942890110e9229e513 /addons/xbmc.addon | |
parent | 48aa97d415d3f0687ddf7a844cd85809548e411a (diff) |
cleanup: Make <supportedcontent> and <platform> use the same xs:list style schema
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@30597 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'addons/xbmc.addon')
-rw-r--r-- | addons/xbmc.addon/metadata.xsd | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/addons/xbmc.addon/metadata.xsd b/addons/xbmc.addon/metadata.xsd index 639f4d828b..b38d08d2d8 100644 --- a/addons/xbmc.addon/metadata.xsd +++ b/addons/xbmc.addon/metadata.xsd @@ -8,8 +8,8 @@ <xs:element name="description" type="translatedString" minOccurs="0" maxOccurs="unbounded"/> <xs:element name="disclaimer" type="translatedString" minOccurs="0"/> <xs:element name="license" type="xs:string"/> - <xs:element name="platform" type="xs:string" minOccurs="0"/> - <xs:element name="supportedcontent" type="xs:string" minOccurs="0"/> + <xs:element name="platform" type="platformList" minOccurs="0"/> + <xs:element name="supportedcontent" type="contentList" minOccurs="0"/> </xs:sequence> <xs:attribute name="point" type="xs:string" use="required"/> <xs:attribute name="id" type="simpleIdentifier"/> @@ -28,4 +28,27 @@ </xs:extension> </xs:simpleContent> </xs:complexType> + <xs:simpleType name="platformType"> + <xs:restriction base="xs:string"> + <xs:enumeration value="linux"/> + <xs:enumeration value="osx"/> + <xs:enumeration value="wingl"/> + <xs:enumeration value="windx"/> + </xs:restriction> + </xs:simpleType> + <xs:simpleType name="platformList"> + <xs:list itemType="platformType"/> + </xs:simpleType> + <xs:simpleType name="contentType"> + <xs:restriction base="xs:string"> + <xs:enumeration value="albums"/> + <xs:enumeration value="artists"/> + <xs:enumeration value="movies"/> + <xs:enumeration value="tvshows"/> + <xs:enumeration value="musicvideos"/> + </xs:restriction> + </xs:simpleType> + <xs:simpleType name="contentList"> + <xs:list itemType="contentType"/> + </xs:simpleType> </xs:schema> |