diff options
author | Michał Górny <mgorny@gentoo.org> | 2016-03-02 15:57:15 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2016-03-02 15:57:15 +0100 |
commit | 0178ca20ad2d74ba61e2441cb996c8ff4afdbe8b (patch) | |
tree | 2dc9e4ded89842e186490c3ebd90581d68128eee /metadata.xsd | |
parent | Add initial schema for projects.xml (diff) | |
download | xml-schema-0178ca20ad2d74ba61e2441cb996c8ff4afdbe8b.tar.gz xml-schema-0178ca20ad2d74ba61e2441cb996c8ff4afdbe8b.tar.bz2 xml-schema-0178ca20ad2d74ba61e2441cb996c8ff4afdbe8b.zip |
metadata.xml: Do not allow restrict="" in per-category metadata
Diffstat (limited to 'metadata.xsd')
-rw-r--r-- | metadata.xsd | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/metadata.xsd b/metadata.xsd index a153f5c..2e2d614 100644 --- a/metadata.xsd +++ b/metadata.xsd @@ -19,7 +19,7 @@ <xs:complexType name='catMetadataType'> <xs:choice minOccurs='0' maxOccurs='unbounded'> - <xs:element name='longdescription' type='longDescType'/> + <xs:element name='longdescription' type='catLongDescType'/> </xs:choice> </xs:complexType> @@ -98,6 +98,14 @@ <xs:attribute name='restrict' type='restrictAttrType'/> </xs:complexType> + <xs:complexType name='catLongDescType' mixed='true'> + <xs:choice minOccurs='0' maxOccurs='unbounded'> + <xs:element name='pkg' type='pkgType'/> + <xs:element name='cat' type='catType'/> + </xs:choice> + <xs:attribute name='lang' type='langAttrType' default='C'/> + </xs:complexType> + <!-- slots --> <xs:complexType name='slotsType'> <!-- TODO: any order? --> |