diff options
author | 2016-03-18 10:14:38 +0100 | |
---|---|---|
committer | 2016-03-18 10:16:49 +0100 | |
commit | df503aacd21bb82990756297975f7a349fe5cd4c (patch) | |
tree | 05539669c8bc51a5c2085c14ae9e2e1c17aec09b | |
parent | metadata: Allow multiple <doc/> elements with the same language (diff) | |
download | xml-schema-df503aacd21bb82990756297975f7a349fe5cd4c.tar.gz xml-schema-df503aacd21bb82990756297975f7a349fe5cd4c.tar.bz2 xml-schema-df503aacd21bb82990756297975f7a349fe5cd4c.zip |
metadata: Prevent (accidental?) duplicate maintainer entries
-rw-r--r-- | metadata.xsd | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/metadata.xsd b/metadata.xsd index 962cda1..4620716 100644 --- a/metadata.xsd +++ b/metadata.xsd @@ -8,6 +8,11 @@ <xs:field xpath='@lang'/> <xs:field xpath='@restrict'/> </xs:unique> + <xs:unique name='maintainerUniquityConstraint'> + <xs:selector xpath='maintainer'/> + <xs:field xpath='email'/> + <xs:field xpath='@restrict'/> + </xs:unique> <xs:unique name='slotsUniquityConstraint'> <xs:selector xpath='slots'/> <xs:field xpath='@lang'/> |