summaryrefslogtreecommitdiffstats
path: root/test/schema/scxml-datatypes.xsd
blob: 7771084a43c5ea47a31915688c279f509c8d77a5 (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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://www.w3.org/2005/07/scxml"
    xmlns="http://www.w3.org/2005/07/scxml"
    elementFormDefault="qualified">

	<xsd:annotation>
		<xsd:documentation>
        XML Schema datatypes for SCXML

        Defines containers for the SCXML datatypes, many of these
        imported from other specifications and standards.

		</xsd:documentation>
		<xsd:documentation source="scxml-copyright.xsd"/>
	</xsd:annotation>

	<xsd:simpleType name="Exmode.datatype">
		<xsd:annotation>
			<xsd:documentation>
            Describes the processor execution mode for this document, being
            either "lax" or "strict".     
			</xsd:documentation>
		</xsd:annotation>
		<xsd:restriction base="xsd:NMTOKEN">
			<xsd:enumeration value="lax"/>
			<xsd:enumeration value="strict"/>
		</xsd:restriction>
	</xsd:simpleType>

	<xsd:simpleType name="Binding.datatype">
		<xsd:annotation>
			<xsd:documentation>
            The binding type in use for the SCXML document.     
			</xsd:documentation>
		</xsd:annotation>
		<xsd:restriction base="xsd:NMTOKEN">
			<xsd:enumeration value="early"/>
			<xsd:enumeration value="late"/>
		</xsd:restriction>
	</xsd:simpleType>


	<xsd:simpleType name="HistoryType.datatype">
		<xsd:restriction base="xsd:string">
			<xsd:enumeration value="shallow"/>
			<xsd:enumeration value="deep"/>
		</xsd:restriction>
	</xsd:simpleType>

	<xsd:simpleType name="TransitionType.datatype">
		<xsd:annotation>
			<xsd:documentation>
            The type of the transition i.e. internal or external. 
			</xsd:documentation>
		</xsd:annotation>
		<xsd:restriction base="xsd:NMTOKEN">
			<xsd:enumeration value="internal"/>
			<xsd:enumeration value="external"/>
		</xsd:restriction>
	</xsd:simpleType>

	<xsd:simpleType name="Boolean.datatype">
		<xsd:annotation>
			<xsd:documentation>
            Boolean: true or false only
			</xsd:documentation>
		</xsd:annotation>
		<xsd:restriction base="xsd:NMTOKENS">
			<xsd:enumeration value="true"/>
			<xsd:enumeration value="false"/>
		</xsd:restriction>
	</xsd:simpleType>

	<xsd:simpleType name="AssignType.datatype">
		<xsd:annotation>
			<xsd:documentation>
            The assign type that allows for precise manipulation of the
            datamodel location. Types are:
                 replacechildren (default),
                 firstchild, lastchild,
                 previoussibling, nextsibling,
                 replace, delete,
                 addattribute
			</xsd:documentation>
		</xsd:annotation>
		<xsd:restriction base="xsd:NMTOKEN">
			<xsd:enumeration value="replacechildren"/>
			<xsd:enumeration value="firstchild"/>
			<xsd:enumeration value="lastchild"/>
			<xsd:enumeration value="previoussibling"/>
			<xsd:enumeration value="nextsibling"/>
			<xsd:enumeration value="replace"/>
			<xsd:enumeration value="delete"/>
			<xsd:enumeration value="addattribute"/>
		</xsd:restriction>
	</xsd:simpleType>

	<xsd:simpleType name="URI.datatype">
		<xsd:annotation>
			<xsd:documentation>
            The xsd:anyURI type and thus URI references in SCXML
            documents may contain a wide array of international
            characters. Implementers should reference RFC 3987 and
            the "Character Model for the World Wide Web 1.0:
            Resource Identifiers" in order to provide appropriate
            support for these characters in VoiceXML documents and
            when processing values of this type or mapping them to
            URIs.
			</xsd:documentation>
		</xsd:annotation>
		<xsd:restriction base="xsd:anyURI"/>
	</xsd:simpleType>

	<xsd:simpleType name="Integer.datatype">
		<xsd:annotation>
			<xsd:documentation>Non-negative integer</xsd:documentation>
		</xsd:annotation>
		<xsd:restriction base="xsd:nonNegativeInteger"/>
	</xsd:simpleType>

	<xsd:simpleType name="Duration.datatype">
		<xsd:annotation>
			<xsd:documentation>
            Duration allowing positive values ranging from milliseconds
            to days. 
			</xsd:documentation>
		</xsd:annotation>
		<xsd:restriction base="xsd:string">
			<xsd:pattern value="\d*(\.\d+)?(ms|s|m|h|d)"/>
		</xsd:restriction>
	</xsd:simpleType>


	<xsd:simpleType name="EventType.datatype">
		<xsd:annotation>
			<xsd:documentation>
            EventType is the name of an event.
            Example legal values:
            	foo
            	foo.bar
            	foo.bar.baz
            </xsd:documentation>
		</xsd:annotation>
		<xsd:restriction base="xsd:token">
			<xsd:pattern value="(\i|\d|\-)+(\.(\i|\d|\-)+)*"/>
		</xsd:restriction>
	</xsd:simpleType>

	<xsd:simpleType name="EventTypes.datatype">
		<xsd:annotation>
			<xsd:documentation>
			Custom datatype for the event attribute in SCXML based on xsd:token.
			Example legal values:
				*
				foo
				foo.bar
				foo.*
				foo.bar.*
				foo bar baz
				foo.bar bar.* baz.foo.*
            </xsd:documentation>
		</xsd:annotation>
		<xsd:restriction base="xsd:token">
			<xsd:pattern value="\.?\*|(\i|\d|\-)+(\.(\i|\d|\-)+)*(\.\*)?(\s(\i|\d|\-)+(\.(\i|\d|\-)+)*(\.\*)?)*"/>
		</xsd:restriction>
	</xsd:simpleType>

	<!-- Defines the  default CondLang datatype.        -->
	<xsd:simpleType name="CondLang.datatype">
		<xsd:annotation>
			<xsd:documentation>
		    Conditional language is expression 
		    which must evaluate to Boolean True or False. 
		    The expression language must define In(stateID) 
		    as a valid expression.
            </xsd:documentation>
		</xsd:annotation>
		<xsd:restriction base="xsd:string"/>
	</xsd:simpleType>

	<!-- Defines the  default LocLang datatype.         -->
	<xsd:simpleType name="LocLang.datatype">
		<xsd:annotation>
			<xsd:documentation>
	        Location language is expression
		    identifying a location in the datamodel.  
	        </xsd:documentation>
		</xsd:annotation>
		<xsd:restriction base="xsd:string"/>
	</xsd:simpleType>

	<!-- Defines the default ValueLang datatype.       -->
	<xsd:simpleType name="ValueLang.datatype">
		<xsd:annotation>
			<xsd:documentation>
		    Value language is expression
		    return a value.
            </xsd:documentation>
		</xsd:annotation>
		<xsd:restriction base="xsd:string"/>
	</xsd:simpleType>
</xsd:schema>