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

Re: Apparent error in XQuery 1.0 example 3.8.4

From: Don Chamberlin <chamberl@almaden.ibm.com>
Date: Tue, 25 Jan 2005 17:49:07 -0500
To: jgrondel@xs4all.nl
Cc: public-qt-comments@w3.org
Message-ID: <OF2E0C279A.FE5A1073-ON88256F94.007CFD88-88256F94.007D1EF8@us.ibm.com>
Good catch, Johan!
You were the only person to report this error.
I'll fix it in the next version of the XQuery spec.
Thanks!
--Don Chamberlin




jgrondel@xs4all.nl 
Sent by: public-qt-comments-request@w3.org
01/23/2005 05:33 AM

To
public-qt-comments@w3.org
cc

Subject
Apparent error in XQuery 1.0 example 3.8.4







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 Tuesday, 25 January 2005 22:49:42 UTC

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