diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | ce4a32fe52ef09d8f5ff1dd22c001110902b60a2 (patch) | |
tree | 5ac38a06f3dde268dc7927dc155896926aaf7012 /knewstuff/data | |
download | tdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.tar.gz tdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'knewstuff/data')
-rw-r--r-- | knewstuff/data/README | 5 | ||||
-rw-r--r-- | knewstuff/data/knewstuff.dtd | 34 | ||||
-rw-r--r-- | knewstuff/data/knewstuff.xml | 17 | ||||
-rw-r--r-- | knewstuff/data/knewstuffproviders.dtd | 14 | ||||
-rw-r--r-- | knewstuff/data/providers.xml | 10 |
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> |