summaryrefslogtreecommitdiff
path: root/schema
diff options
context:
space:
mode:
Diffstat (limited to 'schema')
-rw-r--r--schema/layman-global.dtd2
-rw-r--r--schema/layman-global.rng16
2 files changed, 10 insertions, 8 deletions
diff --git a/schema/layman-global.dtd b/schema/layman-global.dtd
index 6530eb5..9c04053 100644
--- a/schema/layman-global.dtd
+++ b/schema/layman-global.dtd
@@ -8,7 +8,7 @@
<!ATTLIST layman
xmlns CDATA #FIXED ''>
-<!ELEMENT overlay (link?,description)>
+<!ELEMENT overlay ((link,description)|(description,link?))>
<!ATTLIST overlay
xmlns CDATA #FIXED ''
contact CDATA #REQUIRED
diff --git a/schema/layman-global.rng b/schema/layman-global.rng
index 6894c10..0bfab3d 100644
--- a/schema/layman-global.rng
+++ b/schema/layman-global.rng
@@ -44,14 +44,16 @@
<value>tar</value>
</choice>
</attribute>
- <optional>
- <element name="link">
- <data type="anyURI"/>
+ <interleave>
+ <optional>
+ <element name="link">
+ <data type="anyURI"/>
+ </element>
+ </optional>
+ <element name="description">
+ <text/>
</element>
- </optional>
- <element name="description">
- <text/>
- </element>
+ </interleave>
</element>
</zeroOrMore>
</element>