commit:     6389c1b2c651d67d3932cfd65fcc080cf2c5c1f3
Author:     Göktürk Yüksek <gokturk <AT> binghamton <DOT> edu>
AuthorDate: Sat May  7 21:17:51 2016 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun May  8 05:20:58 2016 +0000
URL:        https://gitweb.gentoo.org/data/xml-schema.git/commit/?id=6389c1b2

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 <AT> binghamton.edu>

 metadata.xsd | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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'>

Reply via email to