xfm:minOccurs & xfm:maxOccurs

Greetings, the working group have looked at a number of problems 
associated with the XForms Model Item Properties minOccurs and maxOccurs.

The function provided is two fold:

1) a dynamic constraint on the number of items in a collection (in 
contrast to the static restriction supported by XML Schema)
2) the ability to constrain the number of items in a collection in XForms 
Basic (XForms Basic does not support XML Schema Structures which provides 
minOccurs and maxOccurs).

The resolution is that we will not support XForms Model Item Properties 
minOccurs and maxOccurs. The functional requirements can be met by using 
the Model Item Property "constraint".

E.g.
<parent>
<child />
</parent>

<bind nodeset="parent/child" minOccurs="2" maxOccurs="5"/>

would be achieved by:

<bind nodeset="parent" constraint="count(child) &gt;= 2 and count(child) 
&lt;= 5)"/>

Regards, Roland

Received on Tuesday, 28 January 2003 08:27:54 UTC