diff options
author | 2016-03-02 22:58:42 +0100 | |
---|---|---|
committer | 2016-03-02 22:58:42 +0100 | |
commit | 67a8b01f70688b5e7921928bafb9451d4bf0a8fd (patch) | |
tree | 1f7a0212d7f3c287b38007b968ebc57892ca6f7b /metadata.xsd | |
parent | metadata.xml: Fix flag uniquity constraint to use 'name' as well (diff) | |
download | xml-schema-67a8b01f70688b5e7921928bafb9451d4bf0a8fd.tar.gz xml-schema-67a8b01f70688b5e7921928bafb9451d4bf0a8fd.tar.bz2 xml-schema-67a8b01f70688b5e7921928bafb9451d4bf0a8fd.zip |
metadata.xml: Add validation rules for restrict=""
Diffstat (limited to 'metadata.xsd')
-rw-r--r-- | metadata.xsd | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/metadata.xsd b/metadata.xsd index e302211..68a7fbc 100644 --- a/metadata.xsd +++ b/metadata.xsd @@ -266,7 +266,13 @@ </xs:simpleType> <xs:simpleType name='restrictAttrType'> - <xs:restriction base='xs:token'/> + <xs:restriction base='xs:token'> + <!-- simplified package dependency syntax --> + <!-- 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]+)?\*?"/> + </xs:restriction> </xs:simpleType> <!-- generic types --> |