summaryrefslogtreecommitdiff
path: root/ytstenut-protocol-status.xsd
blob: 89712acebb512b6bef54a406deb52fb2a8a2ef54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?xml version='1.0' encoding='UTF-8'?>
<xs:schema
   xmlns:xs='http://www.w3.org/2001/XMLSchema'
   targetNamespace='ytstenut:status'
   xmlns='ytstenut:status'
   elementFormDefault='qualified'>

  <xs:import namespace='http://jabber.org/protocol/pubsub'/>

  <xs:element name='status'>
    <xs:complexType>
      <xs:sequence>
        <xs:choice minOccurs='1' maxOccurs='unbouned'>
          <xs:element ref='description'/>
        </xs:choice>
      </xs:sequence>
      <xs:attribute name='version'
                    type='xs:string'
                    use='required'/>
      <xs:attribute name='from-service'
                    type='xs:NMTOKEN'
                    use='required'/>
      <xs:attribute name='capability'
                    type='xs:NMTOKEN'
                    use='required'/>
      <xs:attribute name='activity'
                    type='xs:NMTOKEN'
                    use='optional'
                    default='yts-activity-idle'/>
      <xs:attribute name='primary-capability'
                    type='boolean'
                    use='optional'
                    default='false'/>
      <xs:attribute name='uri'
                    type='xs:anyURI'
                    use='optional'/>
      <xs:attribute name='uid'
                    type='xs:string'
                    use='optional'/>
      <xs:attribute name='volume'
                    type='xs:double'
                    use='optional'>
        <xs:simpleType>
          <xs:restriction base='double'>
            <xs:minInclusive value='0.0'/>
              <xs:maxInclusive value='1.0'/>
            </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
      <xs:anyAttribute namespace='##other'/>
    </xs:complexType>
  </xs:element>

  <xs:element name='description'>
    <xs:complexType>
       <xs:simpleContent>
         <xs:extension base='xs:string'>
           <xs:attribute name='xml:lang'
                         type='xs:string'
                         use='required'/>
         </xs:extension>
       </xs:simpleContent>
    </xs:complexType>
  </xs:element>

</xs:schema>