W3C home > Mailing lists > Public > public-qt-comments@w3.org > April 2003

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

From: Alberto Massari <amassari@progress.com>
Date: Tue, 15 Apr 2003 14:01:41 +0200
To: Tobias Reif <tobiasreif@pinkjuice.com>
Cc: public-qt-comments@w3.org
Message-id: <5.2.1.1.2.20030415135957.036a5018@namail.bedford.progress.com>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:14:24 GMT