summaryrefslogtreecommitdiff
path: root/schema
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2009-10-01 16:15:39 +0200
committerSebastian Pipping <sebastian@pipping.org>2009-10-01 16:15:39 +0200
commit8b10c5c7fd5b42bb5540fd686e0d97f5d11ad841 (patch)
treec757a9f897dd379246e348fbb728e0ae6ab3da9e /schema
parentFix whitespace (diff)
downloadrepositories-xml-format-8b10c5c7fd5b42bb5540fd686e0d97f5d11ad841.tar.gz
repositories-xml-format-8b10c5c7fd5b42bb5540fd686e0d97f5d11ad841.tar.bz2
repositories-xml-format-8b10c5c7fd5b42bb5540fd686e0d97f5d11ad841.zip
Make "name" an element
Diffstat (limited to 'schema')
-rw-r--r--schema/repositories.dtd7
-rw-r--r--schema/repositories.rng6
2 files changed, 8 insertions, 5 deletions
diff --git a/schema/repositories.dtd b/schema/repositories.dtd
index e16564e..4a3703f 100644
--- a/schema/repositories.dtd
+++ b/schema/repositories.dtd
@@ -15,14 +15,17 @@
xmlns CDATA #FIXED ''
version CDATA #FIXED '1.0'>
-<!ELEMENT repo ((description)+,(longdescription)*,(homepage)?,owner,(source)+,(feed)*)>
+<!ELEMENT repo (name,(description)+,(longdescription)*,(homepage)?,owner,(source)+,(feed)*)>
<!ATTLIST repo
xmlns CDATA #FIXED ''
- name CDATA #REQUIRED
priority CDATA #IMPLIED
quality (core|stable|testing|experimental|graveyard) #IMPLIED
status (official|unofficial) #IMPLIED>
+<!ELEMENT name (#PCDATA)>
+<!ATTLIST name
+ xmlns CDATA #FIXED ''>
+
<!ELEMENT description (#PCDATA)>
<!ATTLIST description
xmlns CDATA #FIXED ''
diff --git a/schema/repositories.rng b/schema/repositories.rng
index f35b486..f75c4eb 100644
--- a/schema/repositories.rng
+++ b/schema/repositories.rng
@@ -19,9 +19,6 @@
</attribute>
<zeroOrMore>
<element name="repo">
- <attribute name="name">
- <text/>
- </attribute>
<optional>
<attribute name="priority">
<data type="integer"/>
@@ -46,6 +43,9 @@
</choice>
</attribute>
</optional>
+ <element name="name">
+ <text/>
+ </element>
<oneOrMore>
<element name="description">
<optional>