W3C home > Mailing lists > Public > www-forms@w3.org > December 2004

RE: Question re bind constraint

From: Chris Picton <xforms-list@tangent.co.za>
Date: Wed, 15 Dec 2004 11:49:23 +0200
To: www-forms@w3.org
Message-Id: <1103104163.12563.9.camel@aleph-null.tangent.co.za>

On Tue, 2004-12-14 at 12:57 -0500, Kugelman, John wrote:
> I believe you can do the following:
> 
>     <model>
>       <instance id="data">
>         <field/>
>       </instance>
> 
>       <instance id="numbers">
>         <numbers>
>           <number>1</number>
>           <number>10</number>
>           <number>23</number>
>         </numbers>
>       </instance>
> 
>       <bind nodeset="instance('data')/field"
>             constraint="not(. = instance('numbers')/number)" />
>     </model>

Thanks.  That works and clarifies the spec for me.
Received on Wednesday, 15 December 2004 09:48:36 GMT

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