Re: Apparent error in XQuery 1.0 example 3.8.4

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