summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2016-03-18 23:22:03 +0100
committerMichał Górny <mgorny@gentoo.org>2016-03-18 23:22:03 +0100
commit346885e357d915d2026576f8dbe3d9d6e5cd4c90 (patch)
treee48f319ba9065fe7f851ea8621044e4c948450d8
parentmetadata: Remove <natural-name/> (diff)
downloadxml-schema-346885e357d915d2026576f8dbe3d9d6e5cd4c90.tar.gz
xml-schema-346885e357d915d2026576f8dbe3d9d6e5cd4c90.tar.bz2
xml-schema-346885e357d915d2026576f8dbe3d9d6e5cd4c90.zip
repositories: Add uniquity constraints for repo descriptions
-rw-r--r--repositories.xsd8
1 files changed, 8 insertions, 0 deletions
diff --git a/repositories.xsd b/repositories.xsd
index 12fbc40..87de3c5 100644
--- a/repositories.xsd
+++ b/repositories.xsd
@@ -12,6 +12,14 @@
<xs:selector xpath='repo'/>
<xs:field xpath='name'/>
</xs:key>
+ <xs:unique name='descUniquityConstraint'>
+ <xs:selector xpath='description'/>
+ <xs:field xpath='@lang'/>
+ </xs:unique>
+ <xs:unique name='longDescUniquityConstraint'>
+ <xs:selector xpath='longdescription'/>
+ <xs:field xpath='@lang'/>
+ </xs:unique>
</xs:element>
<xs:complexType name='repoType'>