pidf-diff.xml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsd:schema
  3. targetNamespace="urn:ietf:params:xml:ns:pidf-diff"
  4. xmlns:tns="urn:ietf:params:xml:ns:pidf-diff"
  5. xmlns:pidf="urn:ietf:params:xml:ns:pidf"
  6. xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  7. elementFormDefault="qualified">
  8. <!-- include patch-ops type definitions -->
  9. <xsd:include
  10. schemaLocation="urn:ietf:params:xml:schema:patch-ops"/>
  11. <!-- import PIDF definitions -->
  12. <xsd:import namespace="urn:ietf:params:xml:ns:pidf"
  13. schemaLocation="pidf.xsd"/>
  14. <!-- partial updates -->
  15. <xsd:element name="pidf-diff">
  16. <xsd:complexType>
  17. <xsd:sequence minOccurs="0" maxOccurs="unbounded">
  18. <xsd:choice>
  19. <xsd:element name="add" type="tns:add"/>
  20. <xsd:element name="replace" type="tns:replace"/>
  21. <xsd:element name="remove" type="tns:remove"/>
  22. </xsd:choice>
  23. </xsd:sequence>
  24. <xsd:attribute name="version" type="xsd:unsignedInt"/>
  25. <xsd:attribute name="entity" type="xsd:anyURI"/>
  26. </xsd:complexType>
  27. </xsd:element>
  28. <!-- full PIDF in addition to optional version -->
  29. <xsd:element name="pidf-full">
  30. <xsd:complexType>
  31. <xsd:complexContent>
  32. <xsd:extension base="pidf:presence">
  33. <xsd:attribute name="version" type="xsd:unsignedInt"/>
  34. </xsd:extension>
  35. </xsd:complexContent>
  36. </xsd:complexType>
  37. </xsd:element>
  38. </xsd:schema>