Allowing "initial" to be an attribute

We have provisionally decided to accept the following change request for inclusion in the next version of the spec.  Both <scxml> and <state> will be allowed to have either

<initial> children or "initial" attributes:

 

>From Torbjorn Lager

 

Re my suggestion to replace <initial> with an attribute: Perhaps you could have
the best of both worlds by treating
 
 <state id="s" target="s1">
 
as equivalent to (and 'syntactic sugar' for) 
 
 <state id="s">
    <initial><transition target="s1"></initial>
 
An SCXML author could choose any of these forms of expression, but if he wanted
to run executable content when entering s1, he would have to pick the more
verbose form of expression. 

 

Received on Thursday, 5 April 2007 13:59:54 UTC