summaryrefslogtreecommitdiffstats
path: root/test/w3c/xpath/test226sub1.scxml
blob: e7776e77a8f215e5176aee664c681a1316c1857e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?xml version="1.0" encoding="UTF-8"?>
<!-- when invoked, if var1 has a value notify parent. Then terminate.   -->
<scxml xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance" initial="s0" datamodel="xpath" version="1.0">
  <datamodel>
    <data id="Var1"/>
  </datamodel>
  <state id="s0">
    <transition cond="$Var1/* or $Var1/text()" target="final">
      <send target="#_parent" event="varBound"/>
    </transition>
    <transition target="final"/>
  </state>
  <final id="final"/>
</scxml>