1 |
commit: 6389c1b2c651d67d3932cfd65fcc080cf2c5c1f3 |
2 |
Author: Göktürk Yüksek <gokturk <AT> binghamton <DOT> edu> |
3 |
AuthorDate: Sat May 7 21:17:51 2016 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 8 05:20:58 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/data/xml-schema.git/commit/?id=6389c1b2 |
7 |
|
8 |
metadata.xsd: properly check for duplicate <longdescription> elements |
9 |
|
10 |
The uniqueness constraint for <longdescription> is on (@lang, @restrict). |
11 |
However, there's no default value for restrict which makes the constraint fail. |
12 |
|
13 |
Signed-off-by: Göktürk Yüksek <gokturk <AT> binghamton.edu> |
14 |
|
15 |
metadata.xsd | 2 +- |
16 |
1 file changed, 1 insertion(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/metadata.xsd b/metadata.xsd |
19 |
index 111e1ec..41a8fca 100644 |
20 |
--- a/metadata.xsd |
21 |
+++ b/metadata.xsd |
22 |
@@ -168,7 +168,7 @@ |
23 |
<xs:element name='cat' type='catType'/> |
24 |
</xs:choice> |
25 |
<xs:attribute name='lang' type='langAttrType' default='en'/> |
26 |
- <xs:attribute name='restrict' type='restrictAttrType'/> |
27 |
+ <xs:attribute name='restrict' type='restrictAttrType' default=''/> |
28 |
</xs:complexType> |
29 |
|
30 |
<xs:complexType name='catLongDescType' mixed='true'> |