

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An introduction to xquery, a language for querying and transforming xml data. Xquery combines the features of xpath and a full-fledged sql-like query language. It allows users to write expressions using xpath, flwr expressions, quantified expressions, and aggregation functions. The document also covers various examples of xquery expressions and their results.
Typology: Slides
1 / 3
This page cannot be seen from the preview
Don't miss anything!


3
4
5
for: loop $b ranges over the result node-set, getting one node at a time let: assignment $p gets the entire result of $b/publisher (possibly many nodes) where: filter condition return: result structuring Invoked in the “innermost loop,” i.e., once for each successful binding of all query variables
6
document(“bib.xml”)/bibliography/book[year<2000]
Two result book elements will be created for a book with two publishers No result book element will be created a book with no publishers
9
10
11
12