W3C home > Mailing lists > Public > public-qt-comments@w3.org > January 2005

Apparent error in XQuery 1.0 example 3.8.4

From: <jgrondel@xs4all.nl>
Date: Sun, 23 Jan 2005 14:33:17 +0100 (CET)
Message-ID: <13555.62.194.63.52.1106487197.squirrel@62.194.63.52>
To: public-qt-comments@w3.org

Dear all,

XQuery 1.0 Spec found in http://www.w3.org/TR/2004/WD-xquery-20041029/
appears to have a small error in the example in paragraph 3.8.4

The part of the XQuery expression listing the books is...

      <books>
        {
          for $b in $bib/book[author = $a]
          order by $b/title                <=== !
          return $b/title
        }
      </books>

It specifies that the books should be ordered by title.

According to the text, the outcome for author 'Stevens' should be...

      <books>
         <title>TCP/IP Illustrated</title>
         <title>Advanced Programming
                in the Unix Environment</title>
      </books>

But these titles do not appear to be ordered.


Success,


Johan van Grondelle
Received on Sunday, 23 January 2005 15:18:17 GMT

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