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

RE: XForms how-to

From: Plech¹míd Martin <Martin.Plechsmid@merlin.cz>
Date: Tue, 29 Jan 2002 10:51:33 +0100
Message-ID: <E50028F23FC6D3118B7D00609761083F015E6FD6@merkur.merlin.cz>
To: "'Mikko Honkala'" <honkkis@tml.hut.fi>, www-forms@w3.org

So, I suggest to change the name of the "ref" attribute on the "bind"
element to "nodeset", or at least to emphasize the exception in behaviour in
the documentation.

	Martin


> -----Pùvodní zpráva-----
> Od: Mikko Honkala [mailto:honkkis@tml.hut.fi]
> Odesláno: 29. ledna 2002 8:41
> Komu: Plech¹míd Martin; www-forms@w3.org
> Pøedmìt: RE: XForms how-to
> 
> 
> > 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.
> 
> -mikko
> 
Received on Tuesday, 29 January 2002 04:46:33 GMT

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