W3C home > Mailing lists > Public > www-forms@w3.org > January 2003

xfm:minOccurs & xfm:maxOccurs

From: Roland Merrick <roland_merrick@uk.ibm.com>
Date: Tue, 28 Jan 2003 13:27:36 +0000
To: www-forms@w3.org
Cc: w3c-forms@w3.org
Message-ID: <OFA684F0AE.F5CE7788-ON80256CBC.0041A555@portsmouth.uk.ibm.com>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:21:54 GMT