watcherinfo.xsd 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
  3. targetNamespace="urn:ietf:params:xml:ns:watcherinfo"
  4. xmlns:tns="urn:ietf:params:xml:ns:watcherinfo" >
  5. <!-- This import brings in the XML language attribute xml:lang-->
  6. <xs:import namespace="http://www.w3.org/XML/1998/namespace"
  7. schemaLocation="http://www.w3.org/2001/03/xml.xsd" />
  8. <xs:element name="watcherinfo">
  9. <xs:complexType>
  10. <xs:sequence>
  11. <xs:element ref="tns:watcher-list" minOccurs="0"
  12. maxOccurs="unbounded"/>
  13. <xs:any namespace="##other" processContents="lax" minOccurs="0"
  14. maxOccurs="unbounded"/>
  15. </xs:sequence>
  16. <xs:attribute name="version" type="xs:nonNegativeInteger"
  17. use="required"/>
  18. <xs:attribute name="state" use="required">
  19. <xs:simpleType>
  20. <xs:restriction base="xs:string">
  21. <xs:enumeration value="full"/>
  22. <xs:enumeration value="partial"/>
  23. </xs:restriction>
  24. </xs:simpleType>
  25. </xs:attribute>
  26. </xs:complexType>
  27. </xs:element>
  28. <xs:element name="watcher-list">
  29. <xs:complexType>
  30. <xs:sequence>
  31. <xs:element ref="tns:watcher" minOccurs="0" maxOccurs=
  32. "unbounded"/>
  33. <xs:any namespace="##other" processContents="lax"
  34. minOccurs="0" maxOccurs="unbounded"/>
  35. </xs:sequence>
  36. <xs:attribute name="resource" type="xs:anyURI" use="required"/>
  37. <xs:attribute name="package" type="xs:string" use="required"/>
  38. </xs:complexType>
  39. </xs:element>
  40. <xs:element name="watcher">
  41. <xs:complexType>
  42. <xs:simpleContent>
  43. <xs:extension base="xs:anyURI">
  44. <xs:attribute name="display-name" type="xs:string"/>
  45. <xs:attribute name="status" use="required">
  46. <xs:simpleType>
  47. <xs:restriction base="xs:string">
  48. <xs:enumeration value="pending"/>
  49. <xs:enumeration value="active"/>
  50. <xs:enumeration value="waiting"/>
  51. <xs:enumeration value="terminated"/>
  52. </xs:restriction>
  53. </xs:simpleType>
  54. </xs:attribute>
  55. <xs:attribute name="event" use="required">
  56. <xs:simpleType>
  57. <xs:restriction base="xs:string">
  58. <xs:enumeration value="subscribe"/>
  59. <xs:enumeration value="approved"/>
  60. <xs:enumeration value="deactivated"/>
  61. <xs:enumeration value="probation"/>
  62. <xs:enumeration value="rejected"/>
  63. <xs:enumeration value="timeout"/>
  64. <xs:enumeration value="giveup"/>
  65. <xs:enumeration value="noresource"/>
  66. </xs:restriction>
  67. </xs:simpleType>
  68. </xs:attribute>
  69. <xs:attribute name="expiration" type="xs:unsignedLong"/>
  70. <xs:attribute name="id" type="xs:string" use="required"/>
  71. <xs:attribute name="duration-subscribed"
  72. type="xs:unsignedLong"/>
  73. <xs:attribute ref="xml:lang"/>
  74. </xs:extension>
  75. </xs:simpleContent>
  76. </xs:complexType>
  77. </xs:element>
  78. </xs:schema>