XForms/Dynamic Labels

Motivation
Sometimes you want to change a single label on a form without loading the form. For example, after you enter the country of an address you may want to ask for a "Province" in Canada or a "State" in the US. This can also be used to load alternative labels based on the user's language.

Link to Working XForms Application
XForms Example of Dynamic Labels

Sample Program
      usa

Discussion
This example shows a nice clean elegant way to iterate over elements in a instance for groups and elements. The structure is:

This examples shows how the output tag can be buried inside the input labels.

Credits
This example was originally inspired by Kurt Cagle.