Extended XQL Examples
Combination:
- combine all books with customers via isbn$root//*?/book?[$i:=isbn]/ (* | $root//customer?[boughtbooks/isbn=$i])
- New concepts
- combination with nodes outside of search context ($root//review)
- correlation variables for expressing join predicate [$i:=isbn]
- $root used for clarity...
- Irregular structure of bookstore is preserved
Multidocuments/Delegation:
- get multiple bookstores from a bookmark list (HTTP-GET)docref('http://www.bookstores')/docref(.//@href)//bookstore
- the same with a form (HTTP-POST - simplified!)docref ('http://www.bookstores/search.cfm',‘country',‘us')//bookstore
- the same with a wrapper (application program delivering XML)wrapper(„bookstore“)//bookstore