The solution I proposed will not work because InfoPath 2007 Form Services is not compatible with the function "position()" (or "last()" for that matter), i.e the message "Use of unsupported XPath functions, position() or last()" is encountered.
I suppose there is a way to insert a default value (ideally a ...