summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2016-03-18 11:10:17 +0100
committerMichał Górny <mgorny@gentoo.org>2016-03-18 11:10:17 +0100
commit7ed9f4ac5f3181d6e8c682d67e7a452f7486b7db (patch)
tree973f2f915036a32eb09da031080b4c09f0f74c6b
parentmetadata: Allow <slots/> elements in any order (diff)
downloadxml-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.xsd5
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="([&lt;&gt;]=?|[=~])[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="(([&lt;&gt;]=?|[=~])[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>