test558.txml 824 B

12345678910111213141516171819202122232425262728
  1. <?xml version="1.0"?>
  2. <!-- in the ECMA data model, test that if the child of <data> is not XML, or if XML is loaded via src=,
  3. the processor treats the value as a string, does whitespace normalization and assigns it to 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">
  8. this is
  9. a string
  10. </data>
  11. <data id="var2" src="file:test558.txt"/>
  12. </datamodel>
  13. <state id="s0">
  14. <transition cond="var1 == 'this is a string'" target="s1"/>
  15. <transition conf:targetfail=""/>
  16. </state>
  17. <state id="s1">
  18. <transition cond="var2 == 'this is a string'" conf:targetpass=""/>
  19. <transition conf:targetfail=""/>
  20. </state>
  21. <conf:pass/>
  22. <conf:fail/>
  23. </scxml>