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.>
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...

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

It specifies that the books should be ordered by title.

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

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

But these titles do not appear to be ordered.


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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:03 UTC