Hi Gijs,
Assuming your multiple selection control is named "my-choices", you can compute the sum with:
sum(for $v in xxf:split($my-choices) return number($v))
And this is what it looks like:
You'll let me know if this is inline with what you were looking for,
Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet