summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2011-10-20 16:43:56 (GMT)
committerChristian Mollekopf <chrigi_1@fastmail.fm>2011-10-20 16:43:56 (GMT)
commit2ba2c0ce7d78caf756e698d9029c990939991523 (patch)
treecd2bc7a9331e569c05542b069bb7efd802cd4958
parent96d8c6cf164fd78b0986bedac001da1f8ed6c3a1 (diff)
downloadlibkolabxml-2ba2c0ce7d78caf756e698d9029c990939991523.tar.gz
First draft of the contact object
-rw-r--r--schemas/contact.xsd123
1 files changed, 123 insertions, 0 deletions
diff --git a/schemas/contact.xsd b/schemas/contact.xsd
new file mode 100644
index 0000000..aaa3c25
--- /dev/null
+++ b/schemas/contact.xsd
@@ -0,0 +1,123 @@
+<?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="base.xsd" />
+
+ <xs:element name="contact" type="Contact"/>
+
+ <xs:complexType name="Contact">
+ <xs:complexContent>
+ <xs:extension base="XMLBase">
+ <xs:sequence>
+ <xs:element name="name">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="given-name"
+ type="xs:string">
+ </xs:element>
+ <xs:element name="middle-names"
+ type="xs:string">
+ </xs:element>
+ <xs:element name="last-name"
+ type="xs:string">
+ </xs:element>
+ <xs:element name="full-name"
+ type="xs:string">
+ </xs:element>
+ <xs:element name="initials"
+ type="xs:string">
+ </xs:element>
+ <xs:element name="prefix"
+ type="xs:string">
+ </xs:element>
+ <xs:element name="suffix"
+ type="xs:string">
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="free-busy-url" type="xs:string"></xs:element>
+ <xs:element name="organization" type="xs:string"></xs:element>
+ <xs:element name="web-page" type="xs:string"></xs:element>
+ <xs:element name="im-address" type="xs:string"></xs:element>
+ <xs:element name="department" type="xs:string"></xs:element>
+ <xs:element name="office-location"
+ type="xs:string">
+ </xs:element>
+ <xs:element name="profession" type="xs:string"></xs:element>
+ <xs:element name="job-title" type="xs:string"></xs:element>
+ <xs:element name="manager-name" type="xs:string"></xs:element>
+ <xs:element name="assistant" type="xs:string"></xs:element>
+ <xs:element name="nick-name" type="xs:string"></xs:element>
+ <xs:element name="spouse-name" type="xs:string"></xs:element>
+ <xs:element name="birthday" type="xs:string"></xs:element>
+ <xs:element name="anniversary" type="xs:string"></xs:element>
+ <xs:element name="picture" type="xs:string"></xs:element>
+ <xs:element name="children" type="xs:string"></xs:element>
+ <xs:element name="gender" type="xs:string"></xs:element>
+ <xs:element name="language" type="xs:string"></xs:element>
+ <xs:element name="phone" maxOccurs="unbounded"
+ minOccurs="0">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="type"
+ type="xs:string">
+ </xs:element>
+ <xs:element name="number"
+ type="xs:string">
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="email" maxOccurs="unbounded"
+ minOccurs="0">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="display-name"
+ type="xs:string">
+ </xs:element>
+ <xs:element name="smtp-address"
+ type="xs:string">
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="address" maxOccurs="unbounded"
+ minOccurs="0">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="type"
+ type="xs:string">
+ </xs:element>
+ <xs:element name="street"
+ type="xs:string">
+ </xs:element>
+ <xs:element name="locality"
+ type="xs:string">
+ </xs:element>
+ <xs:element name="region"
+ type="xs:string">
+ </xs:element>
+ <xs:element name="postal-code"
+ type="xs:string">
+ </xs:element>
+ <xs:element name="country"
+ type="xs:string">
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="preferred-address"
+ type="xs:string">
+ </xs:element>
+ <xs:element name="latitude" type="xs:string"></xs:element>
+ <xs:element name="longitude" type="xs:string"></xs:element>
+ </xs:sequence>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+</xs:schema> \ No newline at end of file