data-model.xsd 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xs:schema targetNamespace="urn:ietf:params:xml:ns:pidf:data-model"
  3. xmlns:xs="http://www.w3.org/2001/XMLSchema"
  4. xmlns="urn:ietf:params:xml:ns:pidf:data-model"
  5. elementFormDefault="qualified" attributeFormDefault="unqualified">
  6. <xs:include schemaLocation="common-schema.xsd"/>
  7. <xs:element name="deviceID" type="deviceID_t">
  8. <xs:annotation>
  9. <xs:documentation>Device ID, a URN</xs:documentation>
  10. </xs:annotation>
  11. </xs:element>
  12. <xs:element name="device">
  13. <xs:annotation>
  14. <xs:documentation>Contains information about the
  15. device</xs:documentation>
  16. </xs:annotation>
  17. <xs:complexType>
  18. <xs:sequence>
  19. <xs:any namespace="##other" processContents="lax"
  20. minOccurs="0" maxOccurs="unbounded"/>
  21. <xs:element ref="deviceID"/>
  22. <xs:element name="note" type="Note_t" minOccurs="0"
  23. maxOccurs="unbounded"/>
  24. <xs:element name="timestamp" type="Timestamp_t" minOccurs="0"/>
  25. </xs:sequence>
  26. <xs:attribute name="id" type="xs:ID" use="required"/>
  27. </xs:complexType>
  28. </xs:element>
  29. <xs:element name="person">
  30. <xs:annotation>
  31. <xs:documentation>Contains information about the human
  32. user</xs:documentation>
  33. </xs:annotation>
  34. <xs:complexType>
  35. <xs:sequence>
  36. <xs:any namespace="##other" processContents="lax"
  37. minOccurs="0" maxOccurs="unbounded">
  38. <xs:annotation>
  39. <xs:documentation>Characteristic and status
  40. information</xs:documentation>
  41. </xs:annotation>
  42. </xs:any>
  43. <xs:element name="note" type="Note_t" minOccurs="0"
  44. maxOccurs="unbounded"/>
  45. <xs:element name="timestamp" type="Timestamp_t" minOccurs="0"/>
  46. </xs:sequence>
  47. <xs:attribute name="id" type="xs:ID" use="required"/>
  48. </xs:complexType>
  49. </xs:element>
  50. </xs:schema>