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 Sunday, 23 January 2005 15:18:17 UTC