Hello,
Why do you want to use Position() when you can show all the names in the repeting Table by Binding the table to the XML?
Open the repeating table forms and then select Change Binding and add the fields you want to show in the table.This way all the values return to the Table.
Hope this helps you.
Kalyan G Reddy
Infopath MVP 2007 and 2008