diff options
author | Michał Górny <mgorny@gentoo.org> | 2016-03-18 11:10:17 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2016-03-18 11:10:17 +0100 |
commit | 7ed9f4ac5f3181d6e8c682d67e7a452f7486b7db (patch) | |
tree | 973f2f915036a32eb09da031080b4c09f0f74c6b | |
parent | metadata: Allow <slots/> elements in any order (diff) | |
download | xml-schema-7ed9f4ac5f3181d6e8c682d67e7a452f7486b7db.tar.gz xml-schema-7ed9f4ac5f3181d6e8c682d67e7a452f7486b7db.tar.bz2 xml-schema-7ed9f4ac5f3181d6e8c682d67e7a452f7486b7db.zip |
metadata: Default restrict to implicit '' and allow it
Use an implicit default of restrict="" to allow uniquity constraints
to work correctly when no restrict="" is defined.
-rw-r--r-- | metadata.xsd | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/metadata.xsd b/metadata.xsd index 65591ca..3959eee 100644 --- a/metadata.xsd +++ b/metadata.xsd @@ -200,7 +200,8 @@ </xs:choice> <xs:attribute name='name' type='flagNameAttrType' use='required'/> - <xs:attribute name='restrict' type='restrictAttrType'/> + <xs:attribute name='restrict' type='restrictAttrType' + default=''/> </xs:complexType> <xs:simpleType name='flagNameAttrType'> @@ -490,7 +491,7 @@ <!-- note: 'pure' package atom is technically valid too but not really meaningful --> <xs:pattern - value="([<>]=?|[=~])[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*-[0-9]+(\.[0-9]+)*[a-z]?((_alpha|_beta|_pre|_rc|_p)[0-9]*)*(-r[0-9]+)?\*?"/> + value="(([<>]=?|[=~])[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*-[0-9]+(\.[0-9]+)*[a-z]?((_alpha|_beta|_pre|_rc|_p)[0-9]*)*(-r[0-9]+)?\*?)?"/> </xs:restriction> </xs:simpleType> |