test446.txml 716 B

12345678910111213141516171819202122232425
  1. <?xml version="1.0"?>
  2. <!-- in the ECMA data model, test that if the child of <data> is JSON, the processor
  3. assigns it as the value of the var -->
  4. <scxml xmlns="http://www.w3.org/2005/07/scxml"
  5. xmlns:conf="http://www.w3.org/2005/scxml-conformance" initial="s0" version="1.0" datamodel="ecmascript">
  6. <datamodel>
  7. <data id="var1">[1, 2, 3]</data>
  8. <data id="var2" src="file:test446.txt"/>
  9. </datamodel>
  10. <state id="s0">
  11. <transition cond="var1 instanceof Array" target="s1"/>
  12. <transition conf:targetfail=""/>
  13. </state>
  14. <state id="s1">
  15. <transition cond="var2 instanceof Array" conf:targetpass=""/>
  16. <transition conf:targetfail=""/>
  17. </state>
  18. <conf:pass/>
  19. <conf:fail/>
  20. </scxml>