W3C home > Mailing lists > Public > www-forms@w3.org > September 2005

RE: Evaluation context for xf:setvalue

From: Mark Birbeck <mark.birbeck@x-port.net>
Date: Fri, 2 Sep 2005 16:39:48 +0100
Message-ID: <ED86A7F0-C679-4799-890A-41BBFAF953B3@S009>
To: "'Sergey Shebanin'" <splash@rulogic.ru>
Cc: <www-forms@w3.org>

Hi Sergey,

> I think that context for xf:setvalue/@value must be same as 
> context for xf:output/@value.

It's a tricky one, and whichever way you do it could be argued to be the
most 'logical'. The advantage of the way it is specified at the moment
though, is that it is consistent with the idea that @ref changes the
evaluation context. So when looking through an XForms document you can
quickly see evaluation contexts by looking for @refs and @nodesets.

In this sense it is also consistent with xf:bind:

  <xf:bind nodeset="x" calculate=". + 1" />

i.e., you can see xf:bind/@calculate as a xf:setvalue that is executed on
the change of a dependent node.

Also, your method would make it very difficult to do things like this:

  <xf:setvalue ref="." value=". + 1" />

Regards,

Mark


Mark Birbeck
CEO
x-port.net Ltd.

e: Mark.Birbeck@x-port.net
t: +44 (0) 20 7689 9232
w: http://www.formsPlayer.com/
b: http://internet-apps.blogspot.com/

Download our XForms processor from
http://www.formsPlayer.com/
Received on Friday, 2 September 2005 15:41:12 GMT

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