W3C home > Mailing lists > Public > www-forms@w3.org > August 2005

xforms:repeat indexes and replace="instance"

From: Erik Bruchez <erik@bruchez.org>
Date: Wed, 24 Aug 2005 20:07:02 -0700
Message-ID: <430D35D6.5010802@bruchez.org>
To: www-forms@w3.org

All,

The behavior of repeat indexes upon insert, delete, and setindex is
well defined in the XForms spec.

In particular, the spec says that upon deleting the last element of an
homogenuous collection, any repeat index associated with that
collection is set to 0.

Now upon instance replacement, it seems reasonable to think that if
the homogenous collection goes from empty to non-empty, the repeat
index should be set to the startIndex value of the repeat element.

It also seems reasonable in general to expect that repeat indexes are
adjusted, and appropriate events fired, for example if the updated
collection is smaller than the original collection and a repeat index
becomes out of bounds.

Unless I am mistaken, the spec + errata are silent on those points.

Any thoughts about this?

-Erik
Received on Thursday, 25 August 2005 03:07:27 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:22:01 GMT