summaryrefslogtreecommitdiffstats
path: root/test/uscxml/xinclude/test-xinclude-simple.scxml
blob: 72127cd89b60ae302867dd6af2a4931d8d3e4162 (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
<scxml xmlns:xi="http://www.w3.org/2001/XInclude">
	<!-- include from file -->
	<xi:include href="text-xinclude-simple.included" />
	<state id="s0">
		<transition target="fail" />
	</state>
	<state id="s1">
		<!-- force fallback via invalid url -->
		<xi:include href="included.invalid">
			<xi:fallback>
				<transition target="s2" />
			</xi:fallback>
		</xi:include>
		<transition target="fail" />
	</state>
	<state id="s2">
		<transition target="pass" />
	</state>
	<final id="fail">
		<onentry><log expr="FAIL!" /></onentry>
	</final>
	<final id="pass">
		<onentry><log expr="PASS!" /></onentry>
	</final>
</scxml>