I have a bit of a problem with rendering the content of my XML file with XForms. I don’t have that much experience with it so if someone can give me a hint that would be great.
My XML looks something like this:
<schedule>
<day>
<course>
</course>
<course>
</course>
..
</day>
<day>
<course>
</course>
..
</day>
..
</schedule>
If I say
<xforms:repeat nodeset="day/course" id="whatever">
<!-- here handling of nodes -->
</xforms:repeat>
I get only the first course of each day…How should I change it so I get for all courses of a day the nodes?
Thanks
The repeat you have there should iterate over all the
<course>, of all the<day>. For instance, the following shows: Math, Physics, English, History.But often, what you want to do is first iterate over the days, then over the courses, as in: