Extension context information
XForms specifies some context information for events. Orbeon Forms adds further context information to events.
Orbeon Forms enhances the XML Events
event()function to take a qualified name as parameter:
event($attribute-name as xs:QName) item()*
This allows namespacing attribute names, therefore better allowing for extension attributes.
On all events, the following extension attributes are supported:
event type (also known as event name), for example
static id of the event target (
absolute id of the event target
static id of the event observer
absolute id of the event observer
whether the event is allowed to bubble or not
whether the event is cancelable or not
current event phase: capture, target, or bubbling
event target's current repeat indexes, if any, starting from the ancestor repeat
event target's ancestor repeat ids, if any
event target's id prefixes, if any, starting from the ancestor components. This will be empty unless the target is within an XBL component
The following extension attributes are supported:
event target's position in the user interface. This is the control's static position, i.e. this does not reflect possible repeat iterations
event target's single-item or repeat binding if any
event target's label value if any
event target's hint value if any
event target's help value if any
event target's alert value if any
event target's error level if any:
xforms-value-changed, the following extension attributes are supported:
event('xxf:value')[SINCE Orbeon Forms 4.4] The current value (that is, the value after the change) of the control.
xforms-select, the following extension attributes are supported:
event('xxf:item-value')When this event is dispatched to in response to a selection control item being selected, returns the value of the selected item.
[SINCE Orbeon Forms 2018.2]
xxf:bindingalso returns the binding if the control has a binding but is non-relevant. In previous versions, if the control was non-relevant,
xxf:bindingalways returned the empty sequence.
xforms-submit-serialize, the following extension attributes are supported:
submission's single-node binding if any
submission's requested serialization, e.g.