summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2016-03-18 17:28:02 +0100
committerMichał Górny <mgorny@gentoo.org>2016-03-18 17:28:02 +0100
commit98f11cfad2ed7fcca279cbbad6ee78e5c896f1d4 (patch)
treeb22e95d9adfb218855e606764dcb172d8985e793
parentmetadata: Default restrict to implicit '' and allow it (diff)
downloadxml-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.
-rw-r--r--metadata.xsd7
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'/>