File: Data.xml title 1 title 2 File: Query.xquery{ for $book in doc("Data.xml")/bib/book let $t := $book/title/text() order by $t return {$t}}Output: title 1 title 2