Closed GoogleCodeExporter closed 8 years ago
Hi Phil.
I think the note you refer to simply means that any index values on inner
repeats are
preserved across changes to outer repeats, rather than getting reset.
The effect is that if you 'revisit' an outer repeat index, any changes you
previously
made to the inner repeat should be restored.
Here is a sequence to illustrate the point:
1. Set the outer repeat index to 3;
2. Set the inner repeat index to 3;
3. Set the outer repeat index to 1.
The inner repeat index should be 1 because it was never changed for outer index
value 1.
4. Set the outer repeat index to 3 again.
The inner repeat index should now be back to 3, since that was its value when
the
outer index was last set to 3.
Another way to look at it is that each row of the repeat has its own index
value,
which is initialised to 1, but doesn't change as the different rows are
selected and
deselected.
Original comment by mark.bir...@gtempaccount.com
on 17 Apr 2009 at 1:10
Issue 323 has been merged into this issue.
Original comment by phil.boo...@gtempaccount.com
on 22 Apr 2009 at 3:54
Hi Mark. It is funny, because I read the spec as meaning the exact opposite of
your
understanding. Are you 100% certain of your take on it? If so, I'll crack on
and change
UXF accordingly. If not, I'll send an email to the WG (if you think that is a
good
idea) to try and get the authoritative opinion.
Original comment by phil.boo...@gtempaccount.com
on 23 Apr 2009 at 8:51
Hi Phil,
I read your description, the verbosity of which was helpful.
The spec is written in terms of repeat items, not repeats.
For the inner repeat, there is supposed to be one index maintained *per outer
repeat
item*.
When the test starts, it sets the outer repeat index to 3, then it sets the
repeat
index of the third outer repeat item's inner repeat to 3. The first and second
outer repeat items have inner repeat indices of 1.
When the test deletes the third repeat item of the outer repeat, the outer
repeat
index becomes 2 as you say.
However, the deletion has no effect whatsoever on the indexes of the two
occurences
of the inner repeat. The inner repeat in the second outer repeat item should
have
an index of 1 because it was never changed from that value in the
initialization.
I think the difference is that you are considering there to be only one index
for
the inner repeat across all of its occurrences in the outer repeat, but this is
not
the case. Every occurrence of a repeat gets a separate index to work with.
Original comment by John.Boyer.PhD@gmail.com
on 24 Apr 2009 at 1:55
Original issue reported on code.google.com by
phil.boo...@gtempaccount.com
on 17 Apr 2009 at 12:40