RE: Default target of <send>

Interesting point.  I'll clean up the prose.  What should the default target be for other types?  If we push the default down into the individual I/O processors, we will need to give a clear specification of the default for each (though one default could be that a certain I/O processor raises an error if 'target' isn't specified.)

- Jim

-----Original Message-----
From: David Junger [mailto:tffy@free.fr] 
Sent: Monday, February 11, 2013 5:06 PM
To: VBWG Public (www-voice@w3.org)
Subject: Default target of <send>

http://www.w3.org/TR/scxml/#SendTargets

"If neither the 'target' nor the 'targetexpr' attribute is specified,  the SCXML Processor must add the event will be added to the external event queue of the sending session."

Beside the bad syntax, I think this should only be required for type="SCXML". Other types should be able to define their own default target.
For example, it makes sense for type="DOM" to default to some element in the parent DOM (like the <scxml> element if present) rather than the SCXML session itself.

			David

Received on Tuesday, 12 February 2013 01:35:29 UTC