Re: xquery-operators/#func-node-after example typo?

At 13.20 15/04/2003 +0200, Tobias Reif wrote:

>Hi
>
>http://www.w3.org/TR/xquery-operators/#func-node-after
>
>"13.1.9.1 Examples
>
>     * op:node-after($item1, $item2) returns false.
>     * op:node-after($item1, $item1) returns false.
>"
>
>Should the first line end in "returns true"?

No, because $item1 comes before $item2, as explained by the sentence at the 
beginning of the chapter 13: "Further assume that variables $item1, $item2, 
etc. are bound to the nodes for the item elements in the document in sequence."
The second examples is using $item1 twice, so also in this case the return 
value must be "false".

Alberto 

Received on Tuesday, 15 April 2003 08:03:22 UTC