blob: 23ca9cf6d0fe99b5a5397e15753f69b78076087f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
<?xml version="1.0" standalone="no"?>
<!-- test that the <data> tag creates an element in the XML datamodel with the correct name and id attr
and binds an XPath variable to it -->
<scxml xmlns="http://www.w3.org/2005/07/scxml" initial="s0" version="1.0" datamodel="xpath">
<datamodel>
<data id="foo" expr="2"/>
</datamodel>
<state id="s0">
<transition cond="local-name($foo)='data'and $foo/@id ='foo'" target="pass"/>
<transition target="fail"/>
</state>
<final id="pass"/>
<final id="fail"/>
</scxml>
|