W3C home > Mailing lists > Public > www-forms@w3.org > October 2001

One Node Many bind Elements Questions

From: Tomayko, Ryan <Ryan_Tomayko@stercomm.com>
Date: Wed, 31 Oct 2001 07:10:04 -0500
Message-ID: <5FD6397E455FD4118BAE00062938354002C9009E@scidubmsg02.isg.stercomm.com>
To: "'www-forms@w3.org'" <www-forms@w3.org>
I apologize if this question has been asked before, I vaguely remember a
discussion on this topic a while back.
 
If a single node in the instance document can have many bind elements
associated with it, what happens when two bind elements contradict each
other on a computed expression?
 
For instance, what if the result of evaluating one binds relevant computed
expressions is true, and another returns false? Example:
 
<bind id="b1" relevant="1" ref="/doc/*"/>
<bind id="b2" relevant="0" ref="/doc/a-node"/>
 
My first guess was to take the result of the first bind element that
specifies the computed expression and ignore any others. This seems to be
okay for relevant, required, readOnly, and calculate. isValid is a special
case where you would want each one to be evaluated.
 
Would it be better to assume the default value for each attribute and loop
through looking for any binds that specify otherwise? For instance, the
default value for relevant is true, so all bind elements that specify true
would be effectively ignored since they merely confirm the default value.
This would mean that there could be many relevant computed expressions
associated with a single node and only one would have to be false for the
node to be considered irrelevant.
 
Thanks,
- Ryan
 

  _____  

Ryan Tomayko < rtomayko@stercomm.com <mailto:rtomayko@stercomm.com> >
B2B Solutions
Sterling Commerce
ext.  5183
cell. 614.560.1366

  _____  

 
Received on Wednesday, 31 October 2001 07:11:08 GMT

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