|
NOTE:
These slides have not been updated since 2003. They have been superseded by the book
Anders Møller and Michael Schwartzbach, February 2006 |
|
| THE XML REVOLUTION - TECHNOLOGIES FOR THE FUTURE WEB |
|
The following example finds the titles of all books which mention both sailing and windsurfing in the same paragraph:
for $b in document("bib.xml")//book
where some $p in $b//paragraph satisfies
(contains($p,"sailing") AND contains($p,"windsurfing"))
return $b/title
|
The next example finds the titles of all books which mention sailing in every paragraph:
for $b in document("bib.xml")//book
where every $p in $b//paragraph satisfies
contains($p,"sailing")
return $b/title
|
|
| COPYRIGHT © 2000-2003 ANDERS MØLLER & MICHAEL I. SCHWARTZBACH |
|