diff options
Diffstat (limited to 'test/uscxml/dom/test-xml-access.scxml')
-rw-r--r-- | test/uscxml/dom/test-xml-access.scxml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/uscxml/dom/test-xml-access.scxml b/test/uscxml/dom/test-xml-access.scxml new file mode 100644 index 0000000..a637c00 --- /dev/null +++ b/test/uscxml/dom/test-xml-access.scxml @@ -0,0 +1,23 @@ +<?xml version="1.0"?> +<scxml datamodel="ecmascript"> + <script src="http://uscxml.tk.informatik.tu-darmstadt.de/scripts/dump.js"/> + <datamodel> + <data id="cmplx1" src="TestData.json"/> + <data id="cmplx2" src="TestData.xml"/> + </datamodel> + <state id="s1"> + <onentry> + <log label="cmplx1" expr="cmplx1.name"/> + <log label="cmplx1" expr="cmplx1.price"/> + <script>dump(cmplx1)</script> + + <log label="cmplx2" expr="cmplx2.getAttribute('importance')"/> + <script> + var node = document.evaluate('//to', cmplx2).asString(); + dump(node); + </script> + </onentry> + <transition target="done"/> + </state> + <final id="done"/> +</scxml> |