W3C home > Mailing lists > Public > www-voice@w3.org > January to March 2013

Re: again a bad initial target in the SCXML document example

From: David Junger <tffy@free.fr>
Date: Wed, 13 Feb 2013 11:37:47 +0100
Message-Id: <D2A3A0F2-CED3-4806-9671-EAC79B7555E0@free.fr>
To: "VBWG Public (www-voice@w3.org)" <www-voice@w3.org>
Le 13 feb 2013 à 11:19, spam.spam.spam.spam@free.fr a écrit :

> In the G.3 [1] section, I can read:
> '<state id="on">
>        <transition target="idle"/>'
> As this is a transition without condition or event, I guess that this is an initial transition.
> So, the correct way to do this is:
> '<state id="on">
>      <initial>
>        <transition target="idle"/>
>      </initial>'
> Is it true ?

This time, there is a difference and you are right. Not for a formal reason but a semantic one. There are sibling eventless transitions after that transition to "idle", and they will never get to be enabled.

Anyway, in both cases the eventless transition to the first child could be removed since the first child is the default initial child.

Received on Wednesday, 13 February 2013 10:38:18 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:07:43 UTC