summaryrefslogtreecommitdiff
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
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
-rw-r--r--samples/repositories.xml6
-rw-r--r--schema/repositories.dtd7
-rw-r--r--schema/repositories.rng10
-rwxr-xr-xwrite-layman-global-txt.py2
4 files changed, 23 insertions, 2 deletions
diff --git a/samples/repositories.xml b/samples/repositories.xml
index 77ce0ad..f97877d 100644
--- a/samples/repositories.xml
+++ b/samples/repositories.xml
@@ -4,6 +4,12 @@
quality="experimental"
status="unofficial">
<description>Gentoo overlay of Sebastian Pipping</description>
+ <longdescription lang="en">
+ Quick-bumps and stuff that I should move to sunrise
+ </longdescription>
+ <longdescription lang="de">
+ Quick-bumps und Ebuilds, die eigentlich ins Sunrise-Overlay gehören
+ </longdescription>
<homepage>http://git.goodpoint.de/?p=overlay-sping.git;a=summary</homepage>
<owner type="person">
<email>sebastian@pipping.org</email>
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"/>
diff --git a/write-layman-global-txt.py b/write-layman-global-txt.py
index 8f69f1e..54b0ab3 100755
--- a/write-layman-global-txt.py
+++ b/write-layman-global-txt.py
@@ -40,7 +40,7 @@ for repo in repositories:
del repo.attrib[att_name]
# Kill unsupported tags
- for tag_name in ('feed', 'source'):
+ for tag_name in ('feed', 'source', 'longdescription'):
for o in repo.findall(tag_name):
repo.remove(o)