SCXML-tutorial

Contents Overview Examples Editor Forum

<content>

Video version

A container element holding data to be passed to an external service.

Example:

<send event="Event1">
	<content>{ 1, 2, 3}</content>
</send>

<send event="Event2">
	<content expr="'Text message'"/>
</send>

Attribute Details

NameRequiredAttribute ConstraintsTypeDefault ValueValid ValuesDescription
exprfalsemust not occur with child contentValue expressionnoneAny valid value expressionA value expression. See 5.9.3 Legal Data Values and Value Expressions for details.

Children

When present, the children of <content> may consist of text, XML from any namespace, or a mixture of both.

A conformant SCXML document must not specify both the 'expr' attribute and child content.

W3C IRP tests

1. Test 527

When the SCXML Processor evaluates the content element, if the 'expr' value expression is present, the Processor MUST evaluate it and use the result as the output of the content element.

test527

2. Test 528

If the evaluation of 'expr' produces an error, the Processor MUST place error.execution in the internal event queue and use the empty string as the output of the content element.

test528

3. Test 529

If the 'expr' attribute is not present, the Processor MUST use the children of content as the output.

test529

TOP Contents Overview Examples Editor Forum