test561.txml 744 B

1234567891011121314151617181920212223242526272829
  1. <?xml version="1.0"?>
  2. <!-- in the ECMA data model, test that processor creates an ECMAScript DOM object
  3. _event.data when receiving XML in an event -->
  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. <state id="s0">
  7. <onentry>
  8. <send event="foo">
  9. <content>
  10. <books xmlns="">
  11. <book title="title1"/>
  12. <book title="title2"/>
  13. </books>
  14. </content>
  15. </send>
  16. </onentry>
  17. <transition event="foo" cond="_event.data.getElementsByTagName('book')[1].getAttribute('title') == 'title2'"
  18. conf:targetpass=""/>
  19. <transition event="*" conf:targetfail=""/>
  20. </state>
  21. <conf:pass/>
  22. <conf:fail/>
  23. </scxml>