One Node Many bind Elements Questions

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 UTC