Chapter 2. Data Model and Type System

Introduction

Understanding the XQuery Data Model and type system is central to understanding all the rest of the XQuery language. The XQuery Data Model consists not only of the XML data over which a query operates, but also any other values that the query can produce (as either intermediate values or the final query result). The XQuery type system associates static types with every expression at compile time, and also dynamic types with every value in the data model. The data model and type system both involve a lot of details, but these details are fairly straightforward.

Almost every XML standard has introduced a data model slightly different from those of its predecessors, and XQuery is no different in this ...

Get XQuery: The XML Query Language now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.