summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2016-03-18 10:22:56 +0100
committerMichał Górny <mgorny@gentoo.org>2016-03-18 10:22:56 +0100
commitd6844b4550754966c34e030928e584356539f2cd (patch)
tree01325cc04ec8b2621d0561dcd3654539fe0ec957
parentmetadata: Add a note on restrict="" uniquity problems (diff)
downloadxml-schema-d6844b4550754966c34e030928e584356539f2cd.tar.gz
xml-schema-d6844b4550754966c34e030928e584356539f2cd.tar.bz2
xml-schema-d6844b4550754966c34e030928e584356539f2cd.zip
metadata: Constraint <slot/> to be unique
-rw-r--r--metadata.xsd7
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'>