<!--  EXPERIMENTAL SCXML OUTPUT, NOT READY FOR USE -->
<?xml version="1.0" encoding="utf-8"?>
<scxml name="sm" xmlns="http://www.w3.org/2005/07/scxml" xmlns:xi="http://www.w3.org/2001/XInclude" version="1.0">
<state id="stateOne">
<transition event="eventA" target="stateTwo">
<script>
doTransition();
</script>
</transition>
</state>
<state id="stateTwo">
<transition event="eventB" target="stateOne"/>
</state>
</scxml>
<!--  EXPERIMENTAL SCXML OUTPUT, NOT READY FOR USE -->
<?xml version="1.0" encoding="utf-8"?>
<scxml name="sm" xmlns="http://www.w3.org/2005/07/scxml" xmlns:xi="http://www.w3.org/2001/XInclude" version="1.0">
<state id="stateOne">
<transition event="eventA" cond="x" target="stateTwo"/>
</state>
<state id="stateTwo">
<transition event="eventB" target="stateOne"/>
</state>
</scxml>
<!--  EXPERIMENTAL SCXML OUTPUT, NOT READY FOR USE -->
<?xml version="1.0" encoding="utf-8"?>
<scxml name="sm" xmlns="http://www.w3.org/2005/07/scxml" xmlns:xi="http://www.w3.org/2001/XInclude" version="1.0">
<state id="stateOne">
<onentry>
<script>
System.out.println("auto transition");
</script>
<raise event="__autotransition1__"/>
</onentry>
<transition event="__autotransition1__" target="stateTwo"/>
</state>
<state id="stateTwo"/>
</scxml>
<!--  EXPERIMENTAL SCXML OUTPUT, NOT READY FOR USE -->
<?xml version="1.0" encoding="utf-8"?>
<scxml name="sm" xmlns="http://www.w3.org/2005/07/scxml" xmlns:xi="http://www.w3.org/2001/XInclude" version="1.0">
<state id="stateOne">
<transition event="eventA" cond="getX()" target="stateTwo"/>
</state>
<state id="stateTwo">
<transition event="eventB" target="stateOne"/>
</state>
</scxml>
<!--  EXPERIMENTAL SCXML OUTPUT, NOT READY FOR USE -->
<?xml version="1.0" encoding="utf-8"?>
<scxml name="sm" xmlns="http://www.w3.org/2005/07/scxml" xmlns:xi="http://www.w3.org/2001/XInclude" version="1.0">
<state id="stateOne">
<transition event="eventA" target="stateTwo"/>
</state>
<state id="stateTwo">
<transition event="eventB" target="stateOne"/>
</state>
</scxml>
<!--  EXPERIMENTAL SCXML OUTPUT, NOT READY FOR USE -->
<?xml version="1.0" encoding="utf-8"?>
<scxml name="sm" xmlns="http://www.w3.org/2005/07/scxml" xmlns:xi="http://www.w3.org/2001/XInclude" version="1.0">
<script>
 void doTransitionA()  {
System.out.println("Doing transition A");
  }
 void doTransitionB()  {
System.out.println("Doing transition B");
  }
</script>
</scxml>
<!--  EXPERIMENTAL SCXML OUTPUT, NOT READY FOR USE -->
<?xml version="1.0" encoding="utf-8"?>
<scxml name="sm" xmlns="http://www.w3.org/2005/07/scxml" xmlns:xi="http://www.w3.org/2001/XInclude" version="1.0">
<state id="superState">
<state id="subState"/>
</state>
</scxml>
<!--  EXPERIMENTAL SCXML OUTPUT, NOT READY FOR USE -->
<?xml version="1.0" encoding="utf-8"?>
<scxml xmlns="http://www.w3.org/2005/07/scxml" xmlns:xi="http://www.w3.org/2001/XInclude" version="1.0"/>

<!--  EXPERIMENTAL SCXML OUTPUT, NOT READY FOR USE -->
<?xml version="1.0" encoding="utf-8"?>
<scxml name="sm" xmlns="http://www.w3.org/2005/07/scxml" xmlns:xi="http://www.w3.org/2001/XInclude" version="1.0">
<state id="stateOne">
<onentry>
<script>
doEntry();
</script>
</onentry>
</state>
</scxml>
<!--  EXPERIMENTAL SCXML OUTPUT, NOT READY FOR USE -->
<?xml version="1.0" encoding="utf-8"?>
<scxml name="sm" xmlns="http://www.w3.org/2005/07/scxml" xmlns:xi="http://www.w3.org/2001/XInclude" version="1.0">
<state id="stateOne">
<transition event="eventA" target="stateTwo">
<script>
doTransitionA();
</script>
</transition>
</state>
<state id="stateTwo">
<transition event="eventB" target="stateOne">
<script>
doTransitionB();
</script>
</transition>
</state>
<script>
 void doTransitionA()  {
System.out.println("Doing transition A");
  }
 void doTransitionB()  {
System.out.println("Doing transition B");
  }
</script>
</scxml>
<!--  EXPERIMENTAL SCXML OUTPUT, NOT READY FOR USE -->
<?xml version="1.0" encoding="utf-8"?>
<scxml xmlns="http://www.w3.org/2005/07/scxml" xmlns:xi="http://www.w3.org/2001/XInclude" version="1.0"/>

<!--  EXPERIMENTAL SCXML OUTPUT, NOT READY FOR USE -->
<?xml version="1.0" encoding="utf-8"?>
<scxml name="sm" xmlns="http://www.w3.org/2005/07/scxml" xmlns:xi="http://www.w3.org/2001/XInclude" version="1.0">
<state id="stateOne"/>
</scxml>