Cascading select in repeat groups fails and I can't fix it with Indexed-repeat function

I am trying to do a cascading select within a repeat group using XLSForms.
The excel sheet is attached. I have used an indexed-select function as a
choice filter. I have previously tested that the function brings back the
correct result. However, choices in my second question always bring back
the options for the first selected repeat for all subsequent groups. There
seems to have been a lot of correspondence on this, but no resolution that
I can find.
Assistance appreciated. The file coverts fine with XLSform, validates
correctly with Validate and loads properly in Aggregate and then in ODK
Collect (version 1.4.7 (1053))

roadworkstemp.xml (11.2 KB)

I am trying to do a cascading select within a repeat group using XLSForms.
The excel sheet is attached. I have used an indexed-select function as a
choice filter. I have previously tested that the function brings back the
correct result. However, choices in my second question always bring back
the options for the first selected repeat for all subsequent groups. There
seems to have been a lot of correspondence on this, but no resolution that
I can find.
Assistance appreciated. The file coverts fine with XLSform, validates
correctly with Validate and loads properly in Aggregate and then in ODK
Collect (version 1.4.7 (1053))

I have resolved this by replacing the indexed-repeat function with
current().
i.e replaced operation=indexed-repeat(${operation},${rpt_ops},position(..)) with

operation=current()/./operation

··· On Wednesday, 7 October 2015 17:32:08 UTC+2, Paul Storry wrote:

Dear Paul and the list members

Could you assist me with fixing this similar issue on the attached XLSForm.
You can test using Maize and Onion. I opted to use external selects but
the first units that I select repeat for other crops. I am not sure if the
you applied the fix to the XML form. I am comfortable with the XLSForm.

Looking forward,

Thanks

Shylock

Crops_demo3.xls (140 KB)

··· On Thursday, October 8, 2015 at 2:37:32 PM UTC+2, Paul Storry wrote: > > > > On Wednesday, 7 October 2015 17:32:08 UTC+2, Paul Storry wrote: >> >> I am trying to do a cascading select within a repeat group using >> XLSForms. The excel sheet is attached. I have used an indexed-select >> function as a choice filter. I have previously tested that the function >> brings back the correct result. However, choices in my second question >> always bring back the options for the first selected repeat for all >> subsequent groups. There seems to have been a lot of correspondence on >> this, but no resolution that I can find. >> Assistance appreciated. The file coverts fine with XLSform, validates >> correctly with Validate and loads properly in Aggregate and then in ODK >> Collect (version 1.4.7 (1053)) >> > > I have resolved this by replacing the indexed-repeat function with > current(). > i.e replaced > operation=indexed-repeat(${operation},${rpt_ops},position(..)) with > operation=current()/./operation >