In current XForms 1.1, you can have something like this:

<bind nodeset="some/node" readonly="false()" calculate="if(.='', 'default', .)"/>

This imposes the default value whenever the emptry string condition occurs on the node. Would like a more straightforward and declarative way of representing this pattern.

Better expression of conditional default values (last edited 2008-02-05 17:10:38 by UlrichNicolasLissé)