Re: binds using index()?

Allan,

I've implemented index() in Chiba to always return 1 before 
xforms-model-construct-done is finished. Might be not that elaborated 
but works fine for most cases.

Uli.

Allan Beaufour wrote:
> 
> 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.
> [http://www.w3.org/TR/2006/REC-xforms-20060314/slice4.html#evt-modelConstruct] 
> 
> 
> 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.
> 


-- 
Ulrich Nicolas Lissé

Received on Wednesday, 31 May 2006 21:22:47 UTC