From its origins as a sublanguage of XSLT, XPath has come into its own as a key element of XML. XPath 2.0 has emerged as a robust language twice the size of its predecessor, complex and capable of standing on its own.
This substantive volume, by the editor of the W3C® XSLT 2.0 specification, is the authoritative reference on XPath 2.0. It begins by thoroughly explaining the foundations, including XML schema and the evaluation context. Building on this knowledge, it then moves through literals and function calls, basic operators, path expressions, types, and the regular expressions of three new functions that greatly boost the power of XPath 2.0.
What you will learn from this book
- Top-level constructs and the lexical rules for using whitespace and comments
- Basic operators for writing arithmetic and Boolean expressions
- Three operators for combining the results of path expressions: union, intersect, and except
- How XPath 2.0 supports sequences
- Where to access a complete listing of all functions in the core function library
- How to define the syntax of XPath regular expressions as used in the new functions matches(), replace(), and tokenize(), and much more
Who this book is for
This book is for experienced programmers who use XPath 2.0 and want a comprehensive understanding of it at every level. A basic knowledge of XML and Web architecture is essential.
Wrox Programmers References are designed to give the experienced developer straight facts on a new technology, without hype or unnecessary explanations. They deliver hard information with plenty of practical examples to help you apply new tools to your development projects today.