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

relevants and calculates

From: Rob Bull <rob.bull@blackdog.co.uk>
Date: Mon, 17 Feb 2003 15:27:53 +0100
Message-ID: <001001c2d691$52af0900$f44e08c3@esrc.ac.uk>
To: <www-forms@w3.org>

Hello.

I am having a "logical dilemna" with the model item properties relevant and
calculate, and would be very grateful for any guidance.

Consider this:

<root>
    <a></a>
    <b></b>
    <c></c>
</root>

Then I apply a couple of bindings:
<xforms:bind id="first" nodeset="/root/c" calculate="/root/a + root/b" />
<xforms:bind id="second" nodeset="/root/b" relevant="/root/c &lt; 100" />

I have "inputs" bound to each of these nodes. I set b to 20, and
recalculate, c =0+20, which is less than 100, so b is relevant; cool.

If I now update "a" to be 90, c=90+20; this is now greater than 100, so b
becomes irrelevant, if b is not relevant, c=90, which is less than 100, so b
becomes relevant ...

Should my rendering of the form display an incorrect calculate, or an
incorrect relevant?

Help?

Best regards

Rob.
Received on Monday, 17 February 2003 10:29:04 GMT

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