Looping a variable number of comma-separated items

How can I create a sort of while loop in ODK?
I want to loop through a list of comma-separated values like this

1. What is the problem?
dependency cycle error

2. What app or server are you using and on what device and operating system?
kobo, android 11, vivo2027

3. What you have you tried to fix the problem?
Read forums

4. What steps can we take to reproduce the problem?
run this survey https://docs.google.com/spreadsheets/d/1HNQABlpWNDFw4dJSERZxHnpW-qXqLTrDk9MoOMhmlog/edit#gid=1230848145

5. Anything else we should know or have? If you have a test form or screenshots or logs, attach below.
https://docs.google.com/spreadsheets/d/1HNQABlpWNDFw4dJSERZxHnpW-qXqLTrDk9MoOMhmlog/edit#gid=1230848145

Welcome to the ODK forum, @Cyril_Attie! We're glad you're here. When you get a chance, please introduce yourself on this forum thread. I'd also encourage you to add a picture as your avatar because it helps build community!

Is the survey you linked your full form? How do you get the list of comma-separated values - is it typed into the XLSForm file like that?

Hi @danbjoseph, we're getting it from a custom feature in our app. Thanks for the answer, I also posted on the https://community.kobotoolbox.org/ and after trying several different things, I could finally loop over the comma-separated values by copying the extracted value to a text answer with another custom feature. Otherwise the app returned the following error

“dependency cycles amongst the xpath in relevant/calculate"