summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGöktürk Yüksek <gokturk@binghamton.edu>2016-05-07 17:17:51 -0400
committerMichał Górny <mgorny@gentoo.org>2016-05-08 07:20:58 +0200
commit6389c1b2c651d67d3932cfd65fcc080cf2c5c1f3 (patch)
tree185411616a01ab699a543ca77f2e9d068ea3b403
parentmetadata: Correctly require downstream maintainer <email/> (diff)
downloadxml-schema-6389c1b2c651d67d3932cfd65fcc080cf2c5c1f3.tar.gz
xml-schema-6389c1b2c651d67d3932cfd65fcc080cf2c5c1f3.tar.bz2
xml-schema-6389c1b2c651d67d3932cfd65fcc080cf2c5c1f3.zip
metadata.xsd: properly check for duplicate <longdescription> elements
The uniqueness constraint for <longdescription> is on (@lang, @restrict). However, there's no default value for restrict which makes the constraint fail. Signed-off-by: Göktürk Yüksek <gokturk@binghamton.edu>
-rw-r--r--metadata.xsd2
1 files changed, 1 insertions, 1 deletions
diff --git a/metadata.xsd b/metadata.xsd
index 111e1ec..41a8fca 100644
--- a/metadata.xsd
+++ b/metadata.xsd
@@ -168,7 +168,7 @@
<xs:element name='cat' type='catType'/>
</xs:choice>
<xs:attribute name='lang' type='langAttrType' default='en'/>
- <xs:attribute name='restrict' type='restrictAttrType'/>
+ <xs:attribute name='restrict' type='restrictAttrType' default=''/>
</xs:complexType>
<xs:complexType name='catLongDescType' mixed='true'>