W3C home > Mailing lists > Public > www-forms@w3.org > February 2007

Set context node explicitly to clean up expressions

From: Guntis Ozols <guntiso@latnet.lv>
Date: Tue, 13 Feb 2007 00:18:01 +0200
Message-ID: <1171318681.45d0e79906705@clients.latnet.lv>
To: www-forms@w3.org

Long and cryptic expressions like:
  <xf:setvalue xf:bind="b-total" xf:value="if(../total='', if(../price!='' and
.../amount!='', ../price * ../amount - ../discount, .), .)"/>

could be cleaned up if spec included simple 'context' attribute:

  <xf:setvalue xf:bind="b-total" xf:context="../"
   xf:value="if(total='', if(price!='' and amount!='', price * amount -
discount, price), price)"/>

Is there a solution for this problem?
Could this or something like that be added to 1.1?

Guntis
Received on Tuesday, 13 February 2007 04:46:20 GMT

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