Thanks. I was able to get that working and I am progressing a little. My insert command is working but now I am getting an error on my set fields command.
Any idea what might be wrong wiht my syntax:
BPCS_Bills[selected = "true"][position() = count(current()/preceding-sibling::group10) + 1]/BPCS_Part
or
@BPCS_Part[selected = "true"][position() = count(current()/preceding-sibling::group10) + 1]
My guess is the group10 is the problem??