Last sync 2016.04.01
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / XmlTest_protocolXSDs / PIDF / pidf.xsd
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Copyright (c) 2000-2016 Ericsson Telecom AB
4 All rights reserved. This program and the accompanying materials
5 are made available under the terms of the Eclipse Public License v1.0
6 which accompanies this distribution, and is available at
7 http://www.eclipse.org/legal/epl-v10.html
8
9 Contributors:
10 Balasko, Jeno
11 Raduly, Csaba
12 -->
13 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
14 targetNamespace="urn:ietf:params:xml:ns:pidf"
15 xmlns:pidf="urn:ietf:params:xml:ns:pidf"
16 elementFormDefault="qualified"
17 attributeFormDefault="unqualified">
18
19 <!-- This import brings in the XML language attribute xml:lang-->
20 <xs:import namespace="http://www.w3.org/XML/1998/namespace"
21 schemaLocation="xml.xsd"/>
22
23 <xs:element name="presence" type="pidf:presence"/>
24
25 <xs:complexType name="presence">
26 <xs:sequence>
27 <xs:element name="tuple" type="pidf:tuple" minOccurs="0"
28 maxOccurs="unbounded"/>
29
30 <xs:element name="note" type="pidf:note" minOccurs="0"
31 maxOccurs="unbounded"/>
32 <xs:any namespace="##other" processContents="lax" minOccurs="0"
33 maxOccurs="unbounded"/>
34 </xs:sequence>
35 <xs:attribute name="entity" type="xs:anyURI" use="required"/>
36 </xs:complexType>
37
38 <xs:complexType name="tuple">
39 <xs:sequence>
40 <xs:element name="status" type="pidf:status"/>
41 <xs:any namespace="##other" processContents="lax" minOccurs="0"
42 maxOccurs="unbounded"/>
43 <xs:element name="contact" type="pidf:contact" minOccurs="0"/>
44 <xs:element name="note" type="pidf:note" minOccurs="0"
45 maxOccurs="unbounded"/>
46 <xs:element name="timestamp" type="xs:dateTime" minOccurs="0"/>
47 </xs:sequence>
48 <xs:attribute name="id" type="xs:ID" use="required"/>
49 </xs:complexType>
50
51 <xs:complexType name="status">
52 <xs:sequence>
53 <xs:element name="basic" type="pidf:basic" minOccurs="0"/>
54 <xs:any namespace="##other" processContents="lax" minOccurs="0"
55 maxOccurs="unbounded"/>
56 </xs:sequence>
57 </xs:complexType>
58 <xs:simpleType name="basic">
59 <xs:restriction base="xs:string">
60 <xs:enumeration value="open"/>
61 <xs:enumeration value="closed"/>
62 </xs:restriction>
63 </xs:simpleType>
64
65 <xs:complexType name="contact">
66 <xs:simpleContent>
67 <xs:extension base="xs:anyURI">
68 <xs:attribute name="priority" type="pidf:qvalue"/>
69 </xs:extension>
70 </xs:simpleContent>
71 </xs:complexType>
72
73 <xs:complexType name="note">
74 <xs:simpleContent>
75 <xs:extension base="xs:string">
76 <xs:attribute ref="xml:lang"/>
77 </xs:extension>
78
79 </xs:simpleContent>
80 </xs:complexType>
81
82 <xs:simpleType name="qvalue">
83 <xs:restriction base="xs:decimal">
84 <xs:pattern value="0(.[0-9]{0,3})?"/>
85 <xs:pattern value="1(.0{0,3})?"/>
86 </xs:restriction>
87 </xs:simpleType>
88
89 <!-- Global Attributes -->
90 <xs:attribute name="mustUnderstand" type="xs:boolean" default="0">
91 <xs:annotation>
92 <xs:documentation>
93 This attribute may be used on any element within an optional
94 PIDF extension to indicate that the corresponding element must
95 be understood by the PIDF processor if the enclosing optional
96 element is to be handled.
97 </xs:documentation>
98 </xs:annotation>
99 </xs:attribute>
100 </xs:schema>
This page took 0.032049 seconds and 5 git commands to generate.