| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
|---|
| 2 |
<!-- This is the schema for the XML patch errors defined in RFC 5261 |
|---|
| 3 |
--> |
|---|
| 4 |
|
|---|
| 5 |
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" |
|---|
| 6 |
xmlns:tns="urn:ietf:params:xml:ns:patch-ops-error" |
|---|
| 7 |
targetNamespace="urn:ietf:params:xml:ns:patch-ops-error" |
|---|
| 8 |
elementFormDefault="qualified" |
|---|
| 9 |
attributeFormDefault="unqualified"> |
|---|
| 10 |
|
|---|
| 11 |
<!-- This import brings in the XML language attribute xml:lang--> |
|---|
| 12 |
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" |
|---|
| 13 |
schemaLocation="http://www.w3.org/2001/xml.xsd"/> |
|---|
| 14 |
|
|---|
| 15 |
<!-- ROOT document element for signaling patch-ops errors --> |
|---|
| 16 |
<xsd:element name="patch-ops-error"> |
|---|
| 17 |
<xsd:complexType> |
|---|
| 18 |
<xsd:sequence> |
|---|
| 19 |
<xsd:any namespace="##any" processContents="lax" |
|---|
| 20 |
minOccurs="0" maxOccurs="unbounded"/> |
|---|
| 21 |
</xsd:sequence> |
|---|
| 22 |
<xsd:anyAttribute processContents="lax"/> |
|---|
| 23 |
</xsd:complexType> |
|---|
| 24 |
</xsd:element> |
|---|
| 25 |
|
|---|
| 26 |
<!-- patch-ops error elements: |
|---|
| 27 |
not intended to be used as root documnet elements --> |
|---|
| 28 |
<xsd:element name="invalid-attribute-value" |
|---|
| 29 |
type="tns:patch-error"/> |
|---|
| 30 |
<xsd:element name="invalid-character-set" |
|---|
| 31 |
type="tns:patch-error-simple"/> |
|---|
| 32 |
<xsd:element name="invalid-diff-format" |
|---|
| 33 |
type="tns:patch-error-simple"/> |
|---|
| 34 |
<xsd:element name="invalid-entity-declaration" |
|---|
| 35 |
type="tns:patch-error"/> |
|---|
| 36 |
<xsd:element name="invalid-namespace-prefix" |
|---|
| 37 |
type="tns:patch-error"/> |
|---|
| 38 |
<xsd:element name="invalid-namespace-uri" |
|---|
| 39 |
type="tns:patch-error"/> |
|---|
| 40 |
<xsd:element name="invalid-node-types" |
|---|
| 41 |
type="tns:patch-error"/> |
|---|
| 42 |
<xsd:element name="invalid-patch-directive" |
|---|
| 43 |
type="tns:patch-error"/> |
|---|
| 44 |
<xsd:element name="invalid-root-element-operation" |
|---|
| 45 |
type="tns:patch-error"/> |
|---|
| 46 |
<xsd:element name="invalid-xml-prolog-operation" |
|---|
| 47 |
type="tns:patch-error"/> |
|---|
| 48 |
<xsd:element name="invalid-whitespace-directive" |
|---|
| 49 |
type="tns:patch-error"/> |
|---|
| 50 |
<xsd:element name="unlocated-node" |
|---|
| 51 |
type="tns:patch-error"/> |
|---|
| 52 |
<xsd:element name="unsupported-id-function" |
|---|
| 53 |
type="tns:patch-error"/> |
|---|
| 54 |
<xsd:element name="unsupported-xml-id" |
|---|
| 55 |
type="tns:patch-error"/> |
|---|
| 56 |
|
|---|
| 57 |
<!-- simple patch-ops error type --> |
|---|
| 58 |
<xsd:complexType name="patch-error-simple"> |
|---|
| 59 |
<xsd:attribute name="phrase" type="xsd:string"/> |
|---|
| 60 |
<xsd:attribute ref="xml:lang"/> |
|---|
| 61 |
<xsd:anyAttribute processContents="lax"/> |
|---|
| 62 |
</xsd:complexType> |
|---|
| 63 |
|
|---|
| 64 |
<!-- error type which includes patch operation --> |
|---|
| 65 |
<xsd:complexType name="patch-error"> |
|---|
| 66 |
<xsd:sequence> |
|---|
| 67 |
<xsd:any namespace="##any" processContents="lax"/> |
|---|
| 68 |
</xsd:sequence> |
|---|
| 69 |
<xsd:attribute name="phrase" type="xsd:string"/> |
|---|
| 70 |
<xsd:attribute ref="xml:lang"/> |
|---|
| 71 |
<xsd:anyAttribute processContents="lax"/> |
|---|
| 72 |
</xsd:complexType> |
|---|
| 73 |
</xsd:schema> |
|---|