summaryrefslogtreecommitdiffstats
path: root/schemas/xcap-error.xsd
blob: bc452153fa0e3b0e6bcf4e72768b9b52f2cba94d (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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns="urn:ietf:params:xml:ns:xcap-error" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:ietf:params:xml:ns:xcap-error" elementFormDefault="qualified" attributeFormDefault="unqualified">
  <xs:element name="error-element" abstract="true"/>
  <xs:element name="xcap-error">
    <xs:annotation>
      <xs:documentation>Indicates the reason for the error.</xs:documentation>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element ref="error-element"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="schema-validation-error" substitutionGroup="error-element">
    <xs:annotation>
      <xs:documentation>This element indicates
   that the document was not compliant to the schema after the requested
   operation was performed.</xs:documentation>
    </xs:annotation>
    <xs:complexType>
      <xs:attribute name="phrase" type="xs:string" use="optional"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="not-xml-frag" substitutionGroup="error-element">
    <xs:annotation>
      <xs:documentation>This indicates that the request was supposed to
   contain a valid XML fragment body, but did not.</xs:documentation>
    </xs:annotation>
    <xs:complexType>
      <xs:attribute name="phrase" type="xs:string" use="optional"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="no-parent" substitutionGroup="error-element">
    <xs:annotation>
      <xs:documentation>This indicates that an attempt to insert
   an element, attribute or document failed because the document or
   element into which the insertion was
   supposed to occur does not exist</xs:documentation>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="ancestor" type="xs:anyURI" minOccurs="0">
          <xs:annotation>
            <xs:documentation>Contains an HTTP URI that points to the
   element which is the closest ancestor that does exist.</xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:sequence>
      <xs:attribute name="phrase" type="xs:string" use="optional"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="cannot-insert" substitutionGroup="error-element">
    <xs:annotation>
      <xs:documentation>This indicates that the requested
   PUT operation could not be performed because a GET of that resource
   after the PUT would not yield the content of the PUT request.
      </xs:documentation>
    </xs:annotation>
    <xs:complexType>
      <xs:attribute name="phrase" type="xs:string" use="optional"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="not-xml-att-value" substitutionGroup="error-element">
    <xs:annotation>
      <xs:documentation>This indicates that the
   request was supposed to contain a valid XML attribute value, but did
   not.</xs:documentation>
    </xs:annotation>
    <xs:complexType>
      <xs:attribute name="phrase" type="xs:string" use="optional"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="uniqueness-failure" substitutionGroup="error-element">
    <xs:annotation>
      <xs:documentation>This indicates that the
   requested operation would result in a document that did not meet a
   uniqueness constraint defined by the application usage.</xs:documentation>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="exists" maxOccurs="unbounded">
          <xs:annotation>
            <xs:documentation>For each URI,
   element or attribute specified by the client which is not unique,
   one of these is present.</xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence minOccurs="0">
              <xs:element name="alt-value" type="xs:string" maxOccurs="unbounded">
                <xs:annotation>
                  <xs:documentation>An optional set of alternate values can be
   provided.</xs:documentation>
                </xs:annotation>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="field" type="xs:string" use="required"/>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
      <xs:attribute name="phrase" type="xs:string" use="optional"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="not-well-formed" substitutionGroup="error-element">
    <xs:annotation>
      <xs:documentation>This indicates that the body of the request was
   not a well-formed document.</xs:documentation>
    </xs:annotation>
    <xs:complexType>
      <xs:attribute name="phrase" type="xs:string" use="optional"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="constraint-failure" substitutionGroup="error-element">
    <xs:annotation>
      <xs:documentation>This indicates that the
   requested operation would result in a document that failed a data
   constraint defined by the application usage, but not enforced by the
   schema or a uniqueness constraint.</xs:documentation>
    </xs:annotation>
    <xs:complexType>
      <xs:attribute name="phrase" type="xs:string" use="optional"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="cannot-delete" substitutionGroup="error-element">
    <xs:annotation>
      <xs:documentation>This indicates that the requested DELETE
   operation could not be performed because it would not be
   idempotent.</xs:documentation>
    </xs:annotation>
    <xs:complexType>
      <xs:attribute name="phrase" type="xs:string" use="optional"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="not-utf-8" substitutionGroup="error-element">
    <xs:annotation>
      <xs:documentation>This indicates that request could not be completed because it would have produced a document not encoded in UTF-8.</xs:documentation>
    </xs:annotation>
    <xs:complexType>
      <xs:attribute name="phrase" type="xs:string" use="optional"/>
    </xs:complexType>
  </xs:element>
</xs:schema>
OpenPOWER on IntegriCloud