Skip to Content
XQuery from the Experts: A Guide to the W3C XML Query Language
book

XQuery from the Experts: A Guide to the W3C XML Query Language

by Howard Katz - Editor, Don Chamberlin, Denise Draper, Mary Fernández, Michael Kay, Jonathan Robie, Michael Rys, Jérôme Siméon, Jim Tivy, Philip Wadler
August 2003
Intermediate to advanced
512 pages
11h 23m
English
Addison-Wesley Professional
Content preview from XQuery from the Experts: A Guide to the W3C XML Query Language

Path Expressions

We saw earlier in the chapter many examples of path expressions. Here are some more:

$auction/articles has type element(articles)
$auction/articles/article has type element(article)+
$auction/itesm/article is a static type error
					

These assume that $auction has type element(auction) as defined in Listing 4.2. The first expression has type element(articles) because there is exactly one articles element in an auction element. The second expression has type element(article)+ because there are one or more article elements in an articles element. The third expression is a static type error, because there is no itesm element in an auction element. Here is how the error is caught: the type rules assign to the last path expression the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Querying XML

Querying XML

Jim Melton, Stephen Buxton
XQuery Kick Start

XQuery Kick Start

James McGovern, Per Bothner, Kurt Cagle, James Linn, Vaidyanathan Nagarajan

Publisher Resources

ISBN: 0321180607Purchase book