index() in model binding expressions

6.5.1 Model Binding Expressions and Computed Expressions
https://www.w3.org/community/xformsusers/wiki/XForms_2.0#Model_Binding_Expressions_and_Computed_Expressions

"Note:

If the index() function is being invoked from a model binding expression  
or computed expression, it will be necessary to invoke rebuild manually.  
If the repeat index change occurs due to an implicit behavior such as a  
change to the focused control, then the rebuild (along with recalculate,  
revalidate and refresh) can be invoked from a handler for DOMFocusIn  
attached to the repeat or each repeat object."

Presumably it is worth us pointing out here that using indexref instead of  
index() solves this problem.

Steven

Received on Monday, 12 December 2016 12:40:02 UTC