summaryrefslogtreecommitdiffstats
path: root/knewstuff/data
diff options
context:
space:
mode:
Diffstat (limited to 'knewstuff/data')
-rw-r--r--knewstuff/data/README5
-rw-r--r--knewstuff/data/knewstuff.dtd34
-rw-r--r--knewstuff/data/knewstuff.xml17
-rw-r--r--knewstuff/data/knewstuffproviders.dtd14
-rw-r--r--knewstuff/data/providers.xml10
5 files changed, 80 insertions, 0 deletions
diff --git a/knewstuff/data/README b/knewstuff/data/README
new file mode 100644
index 000000000..6e50ceb2c
--- /dev/null
+++ b/knewstuff/data/README
@@ -0,0 +1,5 @@
+This directory contains example files for the providers list and the description
+of downloadable entries.
+
+It also contains the DTDs for the XML files. You can check the XML files for
+validity e.g with "xmllint <filename> --valid".
diff --git a/knewstuff/data/knewstuff.dtd b/knewstuff/data/knewstuff.dtd
new file mode 100644
index 000000000..b8f6ecd4e
--- /dev/null
+++ b/knewstuff/data/knewstuff.dtd
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!ELEMENT knewstuff (stuff*)>
+<!ELEMENT stuff (name,author,licence,summary*,version,release,releasedate,
+ preview*,payload*,rating?,downloads?)>
+ <!ATTLIST stuff type CDATA #IMPLIED>
+
+<!ELEMENT name (#PCDATA)>
+
+<!ELEMENT author (#PCDATA)>
+ <!ATTLIST author email CDATA #REQUIRED>
+
+<!ELEMENT licence (#PCDATA)>
+
+<!ELEMENT summary (#PCDATA)>
+ <!ATTLIST summary lang CDATA #REQUIRED>
+
+<!ELEMENT version (#PCDATA)>
+
+<!ELEMENT release (#PCDATA)>
+
+<!ELEMENT releasedate (#PCDATA)>
+
+<!ELEMENT url (#PCDATA)>
+
+<!ELEMENT preview (#PCDATA)>
+ <!ATTLIST preview lang CDATA #REQUIRED>
+
+<!ELEMENT payload (#PCDATA)>
+ <!ATTLIST payload lang CDATA #REQUIRED>
+
+<!ELEMENT rating (#PCDATA)>
+
+<!ELEMENT downloads (#PCDATA)>
diff --git a/knewstuff/data/knewstuff.xml b/knewstuff/data/knewstuff.xml
new file mode 100644
index 000000000..f7ba326ec
--- /dev/null
+++ b/knewstuff/data/knewstuff.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE knewstuff SYSTEM "knewstuff.dtd">
+<knewstuff>
+ <stuff type="korganizer/calendar">
+ <name>worldcup2002</name>
+ <author email="schumacher@kde.org">Cornelius Schumacher</author>
+ <licence>GPL</licence>
+ <summary lang="en">Soccer world cup 2002</summary>
+ <version>1.0</version>
+ <release>1</release>
+ <releasedate>2002-06-19</releasedate>
+ <preview lang="en"></preview>
+ <payload lang="en">http://korganizer.kde.org/knewstuff/korganizer/calendar/worldcup2002.ics</payload>
+ <rating>5</rating>
+ <downloads>0</downloads>
+ </stuff>
+</knewstuff>
diff --git a/knewstuff/data/knewstuffproviders.dtd b/knewstuff/data/knewstuffproviders.dtd
new file mode 100644
index 000000000..aebbdb39e
--- /dev/null
+++ b/knewstuff/data/knewstuffproviders.dtd
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!ELEMENT knewstuffproviders (provider+)>
+
+<!ELEMENT provider (noupload?,title)>
+ <!ATTLIST provider downloadurl CDATA #REQUIRED>
+ <!ATTLIST provider uploadurl CDATA #REQUIRED>
+ <!ATTLIST provider nouploadurl CDATA #IMPLIED>
+ <!ATTLIST provider icon CDATA #IMPLIED>
+ <!ATTLIST provider webaccess CDATA #IMPLIED>
+
+<!ELEMENT noupload EMPTY>
+
+<!ELEMENT title (#PCDATA)>
diff --git a/knewstuff/data/providers.xml b/knewstuff/data/providers.xml
new file mode 100644
index 000000000..c76897a95
--- /dev/null
+++ b/knewstuff/data/providers.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE knewstuffproviders SYSTEM "knewstuffproviders.dtd">
+<knewstuffproviders>
+ <provider downloadurl="http://korganizer.kde.org/knewstuff/korganizer/calendar/knewstuff.xml"
+ uploadurl="ftp://some.upload.server"
+ icon="korganizer"
+ webaccess="http://some.webfrontend.server">
+ <title>KOrganizer Home Page</title>
+ </provider>
+</knewstuffproviders>