Repeats - Grouping recommended/needed?

Hello KoBo experts,
is there a general recommendation to wrap with groups in the context of repeats?
We found the following hint in ODK manual:
https://opendatakit.github.io/xforms-spec/#repeats

Repeats … It is recommended to wrap a <repeat> inside a <group> though strictly speaking not required. …

Can you advice with approbiate example, please. Preferably with referencing between 2 repeats. (See our example in https://community.kobotoolbox.org/t/referencing-variables-between-repeats-text-and-calculate-type-work-different/3029

A <repeat> cannot have a label child element. To display a label it should be wrapped inside a <group>

Different to this, as we can see, in KoBoCollect also repeat can have a label, which is shown.

Hi

We have presented articles that explains the use of repeat within our kobotoolbox support page. Could you please explain in detail the specific issue that you are experiencing.

Could you explain in detail what the issue is here. This will help us be able to better support you.

Regards
Stephane

Dear Stephane,
thanks for offering support.
Working with repeat (e.g. for individual questions for each household member on education) we have 3 design options:

  1. begin repeat
    … questions
    end repeat
  2. begin group
    begin repeat
    … questions
    end repeat
    end group
  3. begin repeat
    begin group
    … questions
    end group
    end repeat

Besides the basics of using repeat and group (which we know), we would like to know, if there is best practice recommendation, which option is the better, esp. for referencing of values/variables from a previous repeat (like HH members roster) and for later export to SPSS. See also my citations from ODK manual, please.
We are using KoBoCollect, based on XLSForm, on Android smartphones.
Kind regards

Hi
I believe your issue is limited to what you have indicated below

I would suggest you look at the use of index repeat which is clearly explained within this article

Please indicate clearly what is the error you see when you are following the details in the article

Regards
Stephane

Dear Stephane,
thanks for your reply. We knew the support article and other relate postings.

There is no “error”, but different option - all possible - for design above. Our question is which is better to use. (Side-note We are developing with XLSForm (not with Builder).
I highlighted the options and the question now in bold above.

Best regards
Wolfgang Roos

Hi

All of the three will work, however the shorter the design the neater it should be. My take would be the first one but you should be free to chose.

Regards
Stephane