summaryrefslogtreecommitdiff
path: root/schema
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2009-09-30 03:33:06 +0200
committerSebastian Pipping <sebastian@pipping.org>2009-09-30 03:33:06 +0200
commitc13a394fe1a868012548b2be5fb58359b3bc2891 (patch)
treed4e88b5a418b7226ceb4f013cc9fa403bb3a9752 /schema
parentAdd samples, extend validation script (diff)
downloadrepositories-xml-format-c13a394fe1a868012548b2be5fb58359b3bc2891.tar.gz
repositories-xml-format-c13a394fe1a868012548b2be5fb58359b3bc2891.tar.bz2
repositories-xml-format-c13a394fe1a868012548b2be5fb58359b3bc2891.zip
Add support for <longdescription> as requested
Diffstat (limited to 'schema')
-rw-r--r--schema/repositories.dtd7
-rw-r--r--schema/repositories.rng10
2 files changed, 16 insertions, 1 deletions
diff --git a/schema/repositories.dtd b/schema/repositories.dtd
index e5d5d23..11a124e 100644
--- a/schema/repositories.dtd
+++ b/schema/repositories.dtd
@@ -13,7 +13,7 @@
xmlns CDATA #FIXED ''
version CDATA #FIXED '1.0'>
-<!ELEMENT repo (description,(homepage)?,owner,(source)+,(feed)*)>
+<!ELEMENT repo (description,(longdescription)*,(homepage)?,owner,(source)+,(feed)*)>
<!ATTLIST repo
xmlns CDATA #FIXED ''
name CDATA #REQUIRED
@@ -25,6 +25,11 @@
<!ATTLIST description
xmlns CDATA #FIXED ''>
+<!ELEMENT longdescription (#PCDATA)>
+<!ATTLIST longdescription
+ xmlns CDATA #FIXED ''
+ lang CDATA #IMPLIED>
+
<!ELEMENT homepage (#PCDATA)>
<!ATTLIST homepage
xmlns CDATA #FIXED ''>
diff --git a/schema/repositories.rng b/schema/repositories.rng
index 111d9a2..5f7efb9 100644
--- a/schema/repositories.rng
+++ b/schema/repositories.rng
@@ -47,6 +47,16 @@
<element name="description">
<text/>
</element>
+ <zeroOrMore>
+ <element name="longdescription">
+ <optional>
+ <attribute name="lang">
+ <text/>
+ </attribute>
+ </optional>
+ <text/>
+ </element>
+ </zeroOrMore>
<optional>
<element name="homepage">
<data type="anyURI"/>