XForms/Table Column Total

Motivation
Frequently a form must display the total of a column. This can be accomplished using the bind function in the model.

Sample my-data.xml instance file


Discussion
This example uses div blocks for the table header and footer. The total will be updated each time the user tabs out of a field. New items are always added to the end but you can delete an existing item just by selecting it and pressing the "Delete item" button.