3 commits - schemas/event.xsd schemas/incidence.xsd schemas/task.xsd

Christian Mollekopf mollekopf at kolabsys.com
Thu Oct 20 19:14:48 CEST 2011


 schemas/event.xsd     |   25 +++++++++++++++++++++++++
 schemas/incidence.xsd |    1 -
 schemas/task.xsd      |   29 +++++++++++++++++++++++++++++
 3 files changed, 54 insertions(+), 1 deletion(-)

New commits:
commit 75e02898119d901dc1fe36edcd88856ccfc6ef69
Author: Christian Mollekopf <chrigi_1 at fastmail.fm>
Date:   Thu Oct 20 19:14:39 2011 +0200

    moved startDate to event/task as it has different constraints for the two types

diff --git a/schemas/incidence.xsd b/schemas/incidence.xsd
index abbf56b..2563521 100644
--- a/schemas/incidence.xsd
+++ b/schemas/incidence.xsd
@@ -15,7 +15,6 @@
 
 					</xs:element>
 					<xs:element name="organizer" type="SMTPContact"></xs:element>
-					<xs:element name="start-date" type="xs:dateTime"></xs:element>
 					<xs:element name="alarm" type="xs:string"></xs:element>
 					<xs:element name="recurrence" type="Recurrence"></xs:element>
 					<xs:element name="attendees">


commit b207a7f444b8088b9380961c39bf67888a45738d
Author: Christian Mollekopf <chrigi_1 at fastmail.fm>
Date:   Thu Oct 20 19:13:59 2011 +0200

    first draft of an event

diff --git a/schemas/event.xsd b/schemas/event.xsd
new file mode 100644
index 0000000..a4b0703
--- /dev/null
+++ b/schemas/event.xsd
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+    targetNamespace="http://www.kolab.org/Kolab"
+    xmlns="http://www.kolab.org/Kolab"
+    elementFormDefault="qualified">
+
+    <xs:include schemaLocation="incidence.xsd" />
+
+    <xs:element name="event" type="Event"/>
+
+    <xs:complexType name="Event">
+        <xs:complexContent>
+            <xs:extension base="Incidence">
+                <xs:sequence>
+
+                	<xs:element name="show-time-as" type="xs:string"></xs:element>
+                	<xs:element name="color-label" type="xs:string"></xs:element>
+                    <xs:element name="start-date" type="xs:dateTime"></xs:element>
+                    <xs:element name="end-date" type="xs:dateTime"></xs:element>
+                </xs:sequence>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+
+</xs:schema>
\ No newline at end of file


commit f9747244039a7b139e5c760700465ac11659c620
Author: Christian Mollekopf <chrigi_1 at fastmail.fm>
Date:   Thu Oct 20 19:13:47 2011 +0200

    first draft of a task

diff --git a/schemas/task.xsd b/schemas/task.xsd
new file mode 100644
index 0000000..eb5ca48
--- /dev/null
+++ b/schemas/task.xsd
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+    targetNamespace="http://www.kolab.org/Kolab"
+    xmlns="http://www.kolab.org/Kolab"
+    elementFormDefault="qualified">
+
+    <xs:include schemaLocation="incidence.xsd" />
+
+    <xs:element name="task" type="Task"/>
+
+    <xs:complexType name="Task">
+        <xs:complexContent>
+            <xs:extension base="Incidence">
+                <xs:sequence>
+
+                	<xs:element name="priority" type="xs:int"></xs:element>
+                	<xs:element name="completed" type="xs:int"></xs:element>
+                	<xs:element name="status" type="xs:string"></xs:element>
+                    <xs:element name="start-date" type="xs:dateTime" maxOccurs="1" minOccurs="0"></xs:element>
+                    <xs:element name="due-date" type="xs:dateTime"
+                		maxOccurs="1" minOccurs="0">
+                	</xs:element>
+                	<xs:element name="parent" type="xs:string"></xs:element>
+                </xs:sequence>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+
+</xs:schema>
\ No newline at end of file





More information about the commits mailing list