summaryrefslogtreecommitdiffstats
path: root/test/samples/w3c/txml/test444.txml
blob: 2483bdf7a68d31ee4abdd7ed9f07d1accc3a088b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?xml version="1.0"?>
<!--  test that <data> creates a new ecmascript variable. -->


<scxml  datamodel="ecmascript"  version="1.0" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance">
  <datamodel>
    <data id="var1" expr="1"/>
    </datamodel>
     
<state id="s0">
<!-- test that var1 can be used as an ecmascript variable -->
  <transition  cond="++var1==2" conf:targetpass=""/>
  <transition  conf:targetfail=""/>
</state>


 
<conf:pass/>
<conf:fail/>
</scxml>