[xquery-talk] min max and mix

David Lee dlee at calldei.com
Mon Feb 10 04:53:35 PST 2014


This is documented as implementation dependent, so any experiments are limited in value to that particular implementation version.

> Selects an item from the input sequence $arg whose value is greater 
> than or equal to the value of every other item in the input sequence.
> If there are two or more such items, then the specific item whose 
> value is returned is *implementation dependent*.

Even if it were not system dependent there is no defined way to take an atomic value and figure out which node it came from,
so, IMHO, the statement of implementation dependency is only there because its also non-testable ... 
even given this ...    
    max( ( <a>1.0</a> , <b>1.00</b> ) ) =>  1  

a or b ? good luck.

This is really a fancy way of saying implementations can apply the atomization *before* the comparison and dont have to keep track
of where it all came from.

David A. Lee
dlee at calldei.com

More information about the talk mailing list