W3C home > Mailing lists > Public > www-forms@w3.org > May 2006

binds using index()?

From: Allan Beaufour <beaufour@gmail.com>
Date: Wed, 31 May 2006 13:35:54 +0200
Message-ID: <90d6cb0e0605310435l548ce7dcxf1c2900d6333e8cb@mail.gmail.com>
To: www-forms <www-forms@w3.org>

If a bind is using the index() function in either @nodeset or any of
the MIPs, what should the behaviour be on form load? Is it illegal and
result in an xforms-compute-exception? Or should index() at that point
return 0 or NaN?

The problem is that binds are processed during xforms-model-construct,
but UI is constructed during xforms-model-construct-done.

Just finding the repeat, and grabbing the @startindex does not work.
Because the startindex might be higher than the actual size of the
nodeset the repeat is bound to, and 1) it has not been bound yet, and
2) it might be bound using a @bind using an index() function ... ouch.

... Allan
Received on Wednesday, 31 May 2006 11:36:03 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:17 UTC