relevants and calculates

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 UTC