-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #256 from enen92/fixrepos
Fix repository schemas
- Loading branch information
Showing
5 changed files
with
173 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<?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:sequence> | ||
<xs:element name="dir" type="dirItem" minOccurs="0" maxOccurs="unbounded"/> | ||
<xs:element name="info" type="infoItem" minOccurs="0" maxOccurs="1"/> | ||
<xs:element name="checksum" type="checksumItem" minOccurs="0" maxOccurs="1"/> | ||
<xs:element name="datadir" type="datadirItem" minOccurs="0" maxOccurs="1"/> | ||
<xs:element name="artdir" type="xs:string" minOccurs="0" maxOccurs="1"/> | ||
<xs:element name="hashes" type="xs:string" minOccurs="0" maxOccurs="1"/> | ||
</xs:sequence> | ||
<xs:attribute name="point" type="xs:string" use="required"/> | ||
<xs:attribute name="id" type="simpleIdentifier"/> | ||
<xs:attribute name="name" type="xs:string"/> | ||
</xs:complexType> | ||
</xs:element> | ||
<xs:complexType name="dirItem"> | ||
<xs:group ref="dirItems" /> | ||
<xs:attribute name="minversion" type="xs:string"/> | ||
<xs:attribute name="maxversion" type="xs:string"/> | ||
</xs:complexType> | ||
<xs:group name="dirItems"> | ||
<xs:all> | ||
<xs:element name="info" type="infoItem" minOccurs="1"/> | ||
<xs:element name="checksum" type="checksumItem" minOccurs="1"/> | ||
<xs:element name="datadir" type="datadirItem" minOccurs="1"/> | ||
<xs:element name="artdir" type="xs:string" minOccurs="0"/> | ||
<xs:element name="hashes" type="xs:string" minOccurs="0"/> | ||
</xs:all> | ||
</xs:group> | ||
<xs:complexType name="checksumItem"> | ||
<xs:simpleContent> | ||
<xs:extension base="xs:string"> | ||
<xs:attribute name="verify" type="xs:string"/> | ||
</xs:extension> | ||
</xs:simpleContent> | ||
</xs:complexType> | ||
<xs:complexType name="infoItem"> | ||
<xs:simpleContent> | ||
<xs:extension base="xs:string"> | ||
<xs:attribute name="compressed" type="xs:boolean"/> | ||
</xs:extension> | ||
</xs:simpleContent> | ||
</xs:complexType> | ||
<xs:complexType name="datadirItem"> | ||
<xs:simpleContent> | ||
<xs:extension base="xs:string"> | ||
<xs:attribute name="zip" type="xs:boolean"/> | ||
</xs:extension> | ||
</xs:simpleContent> | ||
</xs:complexType> | ||
<xs:simpleType name="simpleIdentifier"> | ||
<xs:restriction base="xs:string"> | ||
<xs:pattern value="xbmc\.addon\.repository"/> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
</xs:schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<?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:sequence> | ||
<xs:element name="dir" type="dirItem" minOccurs="1" maxOccurs="unbounded"/> | ||
</xs:sequence> | ||
<xs:attribute name="point" type="xs:string" use="required"/> | ||
<xs:attribute name="id" type="simpleIdentifier"/> | ||
<xs:attribute name="name" type="xs:string"/> | ||
</xs:complexType> | ||
</xs:element> | ||
<xs:complexType name="dirItem"> | ||
<xs:group ref="dirItems" /> | ||
</xs:complexType> | ||
<xs:simpleType name="hashvalues"> | ||
<xs:restriction base="xs:string"> | ||
<xs:enumeration value="sha256"/> | ||
<xs:enumeration value="sha512"/> | ||
<xs:enumeration value="sha1"/> | ||
<xs:enumeration value="md5"/> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
<xs:group name="dirItems"> | ||
<xs:all> | ||
<xs:element name="info" type="infoItem" minOccurs="1"/> | ||
<xs:element name="checksum" type="checksumItem" minOccurs="1"/> | ||
<xs:element name="datadir" type="datadirItem" minOccurs="1"/> | ||
<xs:element name="artdir" type="xs:string" minOccurs="0"/> | ||
<xs:element name="hashes" type="hashvalues" minOccurs="0"/> | ||
</xs:all> | ||
</xs:group> | ||
<xs:complexType name="checksumItem"> | ||
<xs:simpleContent> | ||
<xs:extension base="xs:string"> | ||
<xs:attribute name="verify" type="xs:string"/> | ||
</xs:extension> | ||
</xs:simpleContent> | ||
</xs:complexType> | ||
<xs:complexType name="infoItem"> | ||
<xs:simpleContent> | ||
<xs:extension base="xs:string"> | ||
<xs:attribute name="compressed" type="xs:boolean"/> | ||
</xs:extension> | ||
</xs:simpleContent> | ||
</xs:complexType> | ||
<xs:complexType name="datadirItem"> | ||
<xs:simpleContent> | ||
<xs:extension base="xs:string"> | ||
<xs:attribute name="zip" type="xs:boolean"/> | ||
</xs:extension> | ||
</xs:simpleContent> | ||
</xs:complexType> | ||
<xs:simpleType name="simpleIdentifier"> | ||
<xs:restriction base="xs:string"> | ||
<xs:pattern value="xbmc\.addon\.repository"/> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
</xs:schema> |