Unable to use form with repeats in ODK Collect

Hi there,

I'm building an app which interacts with ODK API and ODK Collect in my Samsung phone.

The xml is built based on my needs for the app. At the moment, I'm able to create a project with a form inside, but things got complicated since I tried adding repeats in my form (i could work with the form before the repeats)

Basically my form is like a system of equipments. I can have multiple equipments inside a system and i can have multiple systems. I can also add multiple images to my equipment.

The thing is: i get an error repeat> member's binding [data/survey/system/ventilation] is within the scope of a that is not its closest containing <repeat !

I've tried using the current() property seen in other topics, but nothing worked, that's why I'm creating my own topic (hoping someone can help me)

My xml file is attached to the topic
ODK_Site.xml (45.7 KB)

Best regards,
David