diff options
author | Michał Górny <mgorny@gentoo.org> | 2016-03-18 10:22:56 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2016-03-18 10:22:56 +0100 |
commit | d6844b4550754966c34e030928e584356539f2cd (patch) | |
tree | 01325cc04ec8b2621d0561dcd3654539fe0ec957 | |
parent | metadata: Add a note on restrict="" uniquity problems (diff) | |
download | xml-schema-d6844b4550754966c34e030928e584356539f2cd.tar.gz xml-schema-d6844b4550754966c34e030928e584356539f2cd.tar.bz2 xml-schema-d6844b4550754966c34e030928e584356539f2cd.zip |
metadata: Constraint <slot/> to be unique
-rw-r--r-- | metadata.xsd | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/metadata.xsd b/metadata.xsd index 6fad88d..1d4100c 100644 --- a/metadata.xsd +++ b/metadata.xsd @@ -43,7 +43,12 @@ </xs:unique> </xs:element> <xs:element name='natural-name' type='xs:token'/> - <xs:element name='slots' type='slotsType'/> + <xs:element name='slots' type='slotsType'> + <xs:unique name='slotUniquityConstraint'> + <xs:selector xpath='slot'/> + <xs:field xpath='@name'/> + </xs:unique> + </xs:element> <xs:element name='upstream' type='upstreamType'/> <xs:element name='use' type='useType'> <xs:unique name='flagUniquityConstraint'> |