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

RE: XForms how-to

From: Mikko Honkala <honkkis@tml.hut.fi>
Date: Tue, 29 Jan 2002 09:40:58 +0200
To: Plech¹míd Martin <Martin.Plechsmid@merlin.cz>, <www-forms@w3.org>
> 1) How to put a constraint on a set of data elements at once?
> The problem is in that the xforms:bind element can have the
> attribute "ref"
> only, not "nodeset". Having e.g.:
> 	<xforms:instance>
> 		<employee name="Karl" income="12345" />
> 		<employee name="Mark" income="2345" />
> 		<employee name="Peter" income="3458" />
> 		<employee name="John" income="23456" />
> 	</xforms:instance>
> 	<xforms:bind ref="employee/@income" type="xsd:int" />
> this would put a constraint on Karl's @income only.

This is wrong assumption. The XPath expr 'employee/@income' will select all
four 'income' attributes. I admit that the attibute name 'ref' can be
misleading here, but the intent of XForms 'bind' element is the ability to
set multiple items' constraints at once.

Received on Tuesday, 29 January 2002 03:41:07 GMT

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