summaryrefslogtreecommitdiffstats
path: root/test/w3c/txml/test469.txml
diff options
context:
space:
mode:
Diffstat (limited to 'test/w3c/txml/test469.txml')
-rw-r--r--test/w3c/txml/test469.txml29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/w3c/txml/test469.txml b/test/w3c/txml/test469.txml
new file mode 100644
index 0000000..cdd5ef5
--- /dev/null
+++ b/test/w3c/txml/test469.txml
@@ -0,0 +1,29 @@
+<?xml version="1.0"?>
+ <!-- test that XPath expressions can be used as value expressions. -->
+
+ <scxml xmlns="http://www.w3.org/2005/07/scxml"
+ xmlns:conf="http://www.w3.org/2005/scxml-conformance" initial="s0" version="1.0" datamodel="xpath">
+ <datamodel>
+ <data id="copyOfEventData"/>
+ </datamodel>
+
+<state id="s0">
+ <onentry>
+ <send event="event1">
+ <param name="param1" expr="1"/>
+ </send>
+ </onentry>
+ <transition event="event1" target="s1">
+ <assign location="$copyOfEventData" expr="$_event/data"/>
+ </transition>
+ </state>
+
+<state id="s1">
+ <transition cond="$copyOfEventData/data/data[@id='param1'] =1" conf:targetpass=""/>
+ <transition conf:targetfail=""/>
+ </state>
+
+<conf:pass/>
+<conf:fail/>
+
+</scxml>