Repeat processing and output

you could use XPath extension function "cursor" to achieve
what you want.

Your example is a good one --thanks--
I've got as one of my todo's to put in a nested repeat
example into the spec --I might steal some of your example
with your permission.

The intent underlying the repeat design is to enable the
kinds of things you're trying --
it's intentionally designed to prevent the inner repeat
changing the behavior of the outer repeat i.e.
it intentionally prevents one from doing evil things like 
for (i=0; i<10; i++) {
for (j=0; j<5; j++) {
if (j=2) {i=9;}
}
}

Notice that as designed, the inner repeat in XForms would
not be able to muck with the loop control variable of the
outer loop.

This is also why it is possible to unambiguously explain the
computation expressed by nested repeats in XForms in terms
of unrolling.

Finally, keep in mind that "unrolling" is only a means to
explain construct repeat --it's not essential that it be
implemented in terms of unrolling.

Hope this helps--

-- 
Best Regards,
--raman
------------------------------------------------------------

IBM Research: Human Language Technologies
Phone:        1 (408) 927 2608
Fax:        1 (408) 927 3012
Email:        tvraman@us.ibm.com
WWW:      http://www.cs.cornell.edu/home/raman
PGP:          http://emacspeak.sf.net/raman.asc
Snail:        IBM Almaden Research Center,
              650 Harry Road
              San Jose 95120

Received on Tuesday, 11 December 2001 12:09:48 UTC