W3C home > Mailing lists > Public > public-qt-comments@w3.org > August 2002

inconsistent definition of order comparisons

From: Gareth Reakes <gareth@decisionsoft.com>
Date: Tue, 6 Aug 2002 03:50:32 -0400 (EDT)
To: <public-qt-comments@w3.org>
Message-ID: <Pine.LNX.4.33.0208060847560.1671-100000@somme.dsl.local>




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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:56:43 UTC