summaryrefslogtreecommitdiff
path: root/schema
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2009-09-30 17:30:52 +0200
committerSebastian Pipping <sebastian@pipping.org>2009-09-30 17:33:00 +0200
commitf7d068d772aa9961338f78d4b91b4783f43ff40f (patch)
tree274615dd40ddd5f7f32869b808de2d965bc228d3 /schema
parentAdd support for <longdescription> as requested (diff)
downloadrepositories-xml-format-f7d068d772aa9961338f78d4b91b4783f43ff40f.tar.gz
repositories-xml-format-f7d068d772aa9961338f78d4b91b4783f43ff40f.tar.bz2
repositories-xml-format-f7d068d772aa9961338f78d4b91b4783f43ff40f.zip
Add language support to <description>
Diffstat (limited to 'schema')
-rw-r--r--schema/repositories.dtd7
-rw-r--r--schema/repositories.rng15
2 files changed, 17 insertions, 5 deletions
diff --git a/schema/repositories.dtd b/schema/repositories.dtd
index 11a124e..e16564e 100644
--- a/schema/repositories.dtd
+++ b/schema/repositories.dtd
@@ -4,6 +4,8 @@
Modelling by
Robert Buchholz <rbu@gentoo.org>
Sebastian Pipping <sebastian@pipping.org>
+ Mounir Lamouri <volkmar@gentoo.org>
+ Tiziano Müller <dev-zero@gentoo.org>
Copyright 1999-2009 Gentoo Foundation
Distributed under the terms of the GNU General Public License v2 or later
@@ -13,7 +15,7 @@
xmlns CDATA #FIXED ''
version CDATA #FIXED '1.0'>
-<!ELEMENT repo (description,(longdescription)*,(homepage)?,owner,(source)+,(feed)*)>
+<!ELEMENT repo ((description)+,(longdescription)*,(homepage)?,owner,(source)+,(feed)*)>
<!ATTLIST repo
xmlns CDATA #FIXED ''
name CDATA #REQUIRED
@@ -23,7 +25,8 @@
<!ELEMENT description (#PCDATA)>
<!ATTLIST description
- xmlns CDATA #FIXED ''>
+ xmlns CDATA #FIXED ''
+ lang CDATA #IMPLIED>
<!ELEMENT longdescription (#PCDATA)>
<!ATTLIST longdescription
diff --git a/schema/repositories.rng b/schema/repositories.rng
index 5f7efb9..f35b486 100644
--- a/schema/repositories.rng
+++ b/schema/repositories.rng
@@ -5,6 +5,8 @@
Modelling by
Robert Buchholz <rbu@gentoo.org>
Sebastian Pipping <sebastian@pipping.org>
+ Mounir Lamouri <volkmar@gentoo.org>
+ Tiziano Müller <dev-zero@gentoo.org>
Copyright 1999-2009 Gentoo Foundation
Distributed under the terms of the GNU General Public License v2 or later
@@ -44,9 +46,16 @@
</choice>
</attribute>
</optional>
- <element name="description">
- <text/>
- </element>
+ <oneOrMore>
+ <element name="description">
+ <optional>
+ <attribute name="lang">
+ <text/>
+ </attribute>
+ </optional>
+ <text/>
+ </element>
+ </oneOrMore>
<zeroOrMore>
<element name="longdescription">
<optional>