XQuery search across a variety of XML data

Designed for query writers who have some knowledge of XML basics, but not necessarily advanced knowledge of XML-related technologies, this book is ideal as both a tutorial and a reference. You?ll find background information for namespaces, schemas, built-in types, and regular expressions that are re...

Full description

Bibliographic Details
Main Author: Walmsley, Priscilla
Format: eBook
Language:English
Published: Sebastopol, CA O'Reilly Media 2015
Edition:Second edition
Subjects:
Online Access:
Collection: O'Reilly - Collection details see MPG.ReNa
Table of Contents:
  • Copyright; Table of Contents; Preface; Contents of This Book; Reading the Syntax Diagrams; Conventions Used in This Book; Using Code Examples; Useful Functions; Safari® Books Online; We'd Like to Hear from You; Acknowledgments; Chapter 1. Introduction to XQuery; What Is XQuery?; Capabilities of XQuery; Uses for XQuery; Processing Scenarios; Easing into XQuery; Path Expressions; FLWORs; Adding XML Elements and Attributes; Adding Elements; Adding Attributes; Functions; Joins; Aggregating and Grouping Values; Chapter 2. XQuery Foundations; The Design and History of the XQuery Language
  • Selecting with Path ExpressionsFLWOR Expressions; The for Clause; The let Clause; The where Clause; The return Clause; The Scope of Variables; Quantified Expressions; Binding Multiple Variables; Selecting Distinct Values; Joins; Three-Way Joins; Outer Joins; Joins and Types; Chapter 7. Sorting and Grouping; Sorting in XQuery; The order by Clause; The sort Function; Document Order; Document Order Comparisons; Reversing the Order; Indicating That Order Is Not Significant; Grouping; Grouping Using the group by Clause; Aggregating Values; Ignoring "Missing" Values; Counting "Missing" Values
  • Chapter 5. Adding Elements and Attributes to ResultsIncluding Elements and Attributes from the Input Document; Direct Element Constructors; Containing Literal Characters; Containing Other Element Constructors; Containing Enclosed Expressions; Specifying Attributes Directly; Declaring Namespaces in Direct Constructors; Use Case: Modifying an Element from the Input Document; Direct Element Constructors and Whitespace; Computed Constructors; Computed Element Constructors; Computed Attribute Constructors; Use Case: Turning Content to Markup; Chapter 6. Selecting and Joining Using FLWORs
  • Conditional Expressions and Effective Boolean ValueNesting Conditional Expressions; Switch Expressions; Logical (and/or) Expressions; Precedence of Logical Expressions; Negating a Boolean Value; Chapter 4. Navigating XML by Using Paths; Path Expressions; Path Expressions and Context; Steps; Axes; Node Tests; Abbreviated Syntax; Other Expressions as Steps; Predicates; Comparisons in Predicates; Using Positions in Predicates; Using Multiple Predicates; More Complex Predicates; A Closer Look at Context; Working with the Context Node; Accessing the Root; Dynamic Paths; The Simple Map Operator
  • XQuery in ContextXQuery and XPath; XQuery Versus XSLT; XQuery Versus SQL; XQuery and XML Schema; Processing Queries; Input Documents; The Query; The Context; The Query Processor; The Results of the Query; The XQuery Data Model; Nodes; Atomic Values; Sequences; Types; Namespaces; Chapter 3. Expressions: XQuery Building Blocks; Categories of Expressions; Keywords and Names; Whitespace in Queries; Literals; Variables; Function Calls; Comments; Precedence and Parentheses; Comparison Expressions; General Comparisons; Value Comparisons; Node Comparisons; Conditional (if-then-else) Expressions