I am fairly new to XLSForm, but I have found three things help me to keep track of what I am doing.
I create a column A called comments. In this columns I write notes to explain to myself what I am doing. Useful when I come back a few days later!
I keep a counter in my comments columns to make sure the number of "begin groups" matches the number of "end groups." I was getting lost when I needed to create complex nesting.
The formula (in Excel) for counting instances of begin and end groups in Column B (my type column) looks like this:
If the number does not match, I know I am going to have a problem.
- I have also taken to using the (unneeded) name in my "end group." I simply find it easier to track that way.
I know these are tips from a novice, and there may be a better way, but all these things have helped me. I hope someone finds them useful too -- or can suggest a better way of doing things.