inconsistent definition of order comparisons

Hi,

I believe the xpath2 spec to be incorrect in its definition.



http://www.w3.org/TR/xpath20/#id-order-comparisons

2.6.4 Order Comparisons

3. A comparison with the << operator returns true if the first operand 
node is earlier than the second operand node in document order, or false 
if the first operand node is later than the second operand node in 
document order.
4. A comparison with the >> operator returns true if the first operand 
node is later than the second operand node in document order, or false if 
the first operand node is earlier than the second operand node in document 
order.



http://www.w3.org/TR/xquery-operators/#op-node-precedes

11.1.9 op:node-precedes
op:node-precedes(node $srcval1, node $srcval2) => boolean

Returns true if the node identified by $srcval1 occurs before the node 
identified by $srcval2 in document order, but is not an ancestor of the 
node identified by $srcval2. Otherwise returns false. This function backs 
up the "precedes" operator on nodes.
11.1.10 op:node-follows
op:node-follows(node $srvcal1, node $srcval2) => boolean

Returns true if the node identified by $srcval1 occurs after the node 
identified by $srcval2 in document order, but is not a descendant of the 
node identified by $srcval2. Otherwise returns false. This function backs 
up the "follows" operator on nodes.



-- 
Gareth Reakes, Head of Product Development  
DecisionSoft Ltd.            http://www.decisionsoft.com
Office: +44 (0) 1865 203192

Received on Tuesday, 6 August 2002 20:47:45 UTC