patch-ops-error.xml 2.6 KB

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