The setindex element
Release 2.0 - ...
This action marks a specific item as current in a repeating sequence (within the repeat element).
Example
| XML |
|
|---|---|
<xforms:action ev:event="DOMActivate"> <xforms:setindex repeat="lineset" index="2"/> </xforms:action> |
|
Attributes
| Name | Required / optional | Description |
|---|---|---|
| repeat | required | Required reference to a repeating element. |
| index | required | Required XPath expression that evaluates to a 1-based offset into the sequence. |
| Common Attributes | optional | Any attribute from the Common Attributes collection (e.g. id). |
| XML Events | optional | Any attribute from the XML Events collection (e.g. ev:event) |
| Common Action Attributes | optional | Any attribute from the Common Action Attributes collection (if or while) |
Content
The setindex element does not allow any content.
Specification
Link to the XForms specification: the setindex element.