The delay child element

Release 2.0 - ...

The delay child element of the dispatch action element provides an alternate means of specifying the delay imposed on the event to be dispatched.

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

The delay element can provide the delay 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 name="xforms-rebuild" targetid="mymodel">
      <xforms:delay>5000</xforms:delay>
   </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 delay, the result of the expression is processed as if by call to the XPath string() function.
If the result does not conform lexically to xsd:nonNegativeInteger, then the result of empty string is used.
An empty string is used if the XPath evaluation fails.

Content

The delay element only allows inline text content.

Specification

Link to the XForms specification: the delay child element.