The name child element

Release 2.0 - ...

The name child element of the dispatch action element provides an alternate means of specifying the name of the event to dispatch.

The event name of the dispatch action is given by the name attribute or the name element. If both are given, the element takes precedence.

The name element can provide the event name with either its string content or the value attribute. If both are given, then the value attribute takes precedence.

Example

XML CopyCode image Copy Code
<xforms:action ev:event="DOMActivate">
   <xforms:dispatch targetid="mymodel">
      <xforms:name>xforms-rebuild</xforms:name>
   </xforms:dispatch>
</xforms:action>

Attributes

Name Required / optional Description
value optional Attribute containing an XPath expression to evaluate using the in-scope evaluation context.
To obtain the event name, the result of the expression is processed as if by call to the XPath string() function.
An empty string is used if the XPath evaluation fails.

Content

The name element only allows inline text content.

Specification

Link to the XForms specification: the name child element.