enum-token-1.0.xml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <schema targetNamespace="urn:ietf:params:xml:ns:enum-token-1.0"
  3. xmlns:enum-token="urn:ietf:params:xml:ns:enum-token-1.0"
  4. xmlns:enum-tokendata="urn:ietf:params:xml:ns:enum-tokendata-1.0"
  5. xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
  6. xmlns="http://www.w3.org/2001/XMLSchema"
  7. elementFormDefault="qualified">
  8. <!-- Import common element types. -->
  9. <import namespace="http://www.w3.org/2000/09/xmldsig#"
  10. schemaLocation="xmldsig-core-schema.xsd"/>
  11. <import namespace="urn:ietf:params:xml:ns:enum-tokendata-1.0"
  12. schemaLocation="enum-tokendata-1.0.xsd"/>
  13. <annotation>
  14. <documentation>
  15. enum.at Validation Token core schema
  16. </documentation>
  17. </annotation>
  18. <element name="token" type="enum-token:tokenBaseType"/>
  19. <simpleType name="shortTokenType">
  20. <restriction base="token">
  21. <minLength value="1"/>
  22. <maxLength value="20"/>
  23. </restriction>
  24. </simpleType>
  25. <simpleType name="e164numberType">
  26. <restriction base="token">
  27. <maxLength value="20"/>
  28. <pattern value="\+\d\d*"/>
  29. </restriction>
  30. </simpleType>
  31. <complexType name="validationDataType">
  32. <sequence>
  33. <element name="E164Number"
  34. type="enum-token:e164numberType"/>
  35. <element name="lastE164Number" minOccurs="0"
  36. type="enum-token:e164numberType"/>
  37. <element name="validationEntityID"
  38. type="enum-token:shortTokenType"/>
  39. <element name="registrarID"
  40. type="enum-token:shortTokenType"/>
  41. <element name="methodID"
  42. type="enum-token:shortTokenType"/>
  43. <element name="executionDate" type="date"/>
  44. <element name="expirationDate"
  45. type="date" minOccurs="0"/>
  46. </sequence>
  47. <attribute name="serial" type="enum-token:shortTokenType"
  48. use="required"/>
  49. </complexType>
  50. <complexType name="tokenBaseType">
  51. <sequence>
  52. <element name="validation"
  53. type="enum-token:validationDataType"/>
  54. <any namespace="urn:ietf:params:xml:ns:enum-tokendata-1.0"
  55. minOccurs="0"/>
  56. <any namespace="http://www.w3.org/2000/09/xmldsig#"/>
  57. </sequence>
  58. <attribute name="Id" type="ID" use="required"/>
  59. </complexType>
  60. </schema>