summaryrefslogtreecommitdiffstats
path: root/schemas/enum-token-1.0.xml
blob: fb96fcdca879f20337c0576d000e486b2b6cdc5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?xml version="1.0" encoding="UTF-8"?>

<schema targetNamespace="urn:ietf:params:xml:ns:enum-token-1.0"
  xmlns:enum-token="urn:ietf:params:xml:ns:enum-token-1.0"
  xmlns:enum-tokendata="urn:ietf:params:xml:ns:enum-tokendata-1.0"
  xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
  xmlns="http://www.w3.org/2001/XMLSchema"
  elementFormDefault="qualified">

<!--  Import common element types.  -->

  <import namespace="http://www.w3.org/2000/09/xmldsig#"
          schemaLocation="xmldsig-core-schema.xsd"/>
  <import namespace="urn:ietf:params:xml:ns:enum-tokendata-1.0"
          schemaLocation="enum-tokendata-1.0.xsd"/>

  <annotation>
    <documentation>
      enum.at Validation Token core schema
    </documentation>
  </annotation>

  <element name="token" type="enum-token:tokenBaseType"/>

  <simpleType name="shortTokenType">
    <restriction base="token">
      <minLength value="1"/>
      <maxLength value="20"/>
    </restriction>
  </simpleType>

  <simpleType name="e164numberType">
    <restriction base="token">
      <maxLength value="20"/>
      <pattern value="\+\d\d*"/>
    </restriction>

  </simpleType>

  <complexType name="validationDataType">
    <sequence>
      <element name="E164Number"
                      type="enum-token:e164numberType"/>
      <element name="lastE164Number" minOccurs="0"
                      type="enum-token:e164numberType"/>
      <element name="validationEntityID"
                      type="enum-token:shortTokenType"/>
      <element name="registrarID"
                      type="enum-token:shortTokenType"/>
      <element name="methodID"
                      type="enum-token:shortTokenType"/>
      <element name="executionDate" type="date"/>
      <element name="expirationDate"
                      type="date" minOccurs="0"/>
    </sequence>
    <attribute name="serial" type="enum-token:shortTokenType"
     use="required"/>
  </complexType>

  <complexType name="tokenBaseType">
    <sequence>
      <element name="validation"
       type="enum-token:validationDataType"/>
      <any namespace="urn:ietf:params:xml:ns:enum-tokendata-1.0"
       minOccurs="0"/>
      <any namespace="http://www.w3.org/2000/09/xmldsig#"/>
    </sequence>
    <attribute name="Id" type="ID" use="required"/>
  </complexType>
</schema>

OpenPOWER on IntegriCloud