The targetid child element
Release 2.0 - ...
The targetid child element of the dispatch action element provides an alternate means of specifying the target of the event to be dispatched.
The event target of the dispatch action is given by the targetid attribute or the targetid element. If both are given, the element takes precedence.
The targetid element can provide an IDREF for the event target with either its string content or the value attribute. If both are given, then the value attribute takes precedence.
Example
XML | Copy Code |
---|---|
<xforms:action ev:event="DOMActivate"> <xforms:dispatch name="xforms-rebuild"> <xforms:targetid>mymodel</xforms:targetid> </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 target, 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 targetid element only allows inline text content.
Specification
Link to the XForms specification: the targetid child element.