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" />



Mark Birbeck
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
Received on Friday, 2 September 2005 15:41:12 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:15 UTC