diff options
author | Michał Górny <mgorny@gentoo.org> | 2016-03-18 17:28:02 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2016-03-18 17:28:02 +0100 |
commit | 98f11cfad2ed7fcca279cbbad6ee78e5c896f1d4 (patch) | |
tree | b22e95d9adfb218855e606764dcb172d8985e793 /metadata.xsd | |
parent | metadata: Default restrict to implicit '' and allow it (diff) | |
download | xml-schema-98f11cfad2ed7fcca279cbbad6ee78e5c896f1d4.tar.gz xml-schema-98f11cfad2ed7fcca279cbbad6ee78e5c896f1d4.tar.bz2 xml-schema-98f11cfad2ed7fcca279cbbad6ee78e5c896f1d4.zip |
metadata: Revert "Allow multiple <doc/> elements with the same language"
Block multiple <doc/> elements after receiving confirmation from GLEP 46
author.
Diffstat (limited to 'metadata.xsd')
-rw-r--r-- | metadata.xsd | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/metadata.xsd b/metadata.xsd index 3959eee..c6aa61a 100644 --- a/metadata.xsd +++ b/metadata.xsd @@ -49,7 +49,12 @@ <xs:field xpath='@name'/> </xs:unique> </xs:element> - <xs:element name='upstream' type='upstreamType'/> + <xs:element name='upstream' type='upstreamType'> + <xs:unique name='upstreamDocUniquityConstraint'> + <xs:selector xpath='doc'/> + <xs:field xpath='@lang'/> + </xs:unique> + </xs:element> <xs:element name='use' type='useType'> <xs:unique name='flagUniquityConstraint'> <xs:selector xpath='flag'/> |