Better expression of conditional default values

From W3C XForms Group Wiki (Public)
Jump to: navigation, search

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.