75
Collections in XQuery
•Ordered and unordered collections
–/bib/book/author  = an ordered collection
–Distinct(/bib/book/author) = an unordered collection
•LET $a = /bib/book   à  $a is a collection
•$b/author  à a collection (several authors...)
RETURN <result> { $b/author } </result>
Returns:
  <result> <author>...</author>
                 <author>...</author>
                 <author>...</author>
                 ...
</result>