Create bookmark
XPath and XPointer
Locating Content in XML Documents
Notes
Please login to add notes
- Table of Contents
- + Preface
- + Introducing XPath and XPointer
-
+
XPath Basics
-
+
Location Steps and Paths
-
+
XPath Functions and Numeric Operators
- + XPath in Action
-
+
XPath 2.0
- + General Goals
-
+
Specific Requirements
-
+
XPath 2.0 MUSTs
- Express its data model in terms of the XML Infoset (1.1)
- Provide common core syntax and semantics for XSLT and XML Query (1.2)
- Support explicit “for any” and “for all” Boolean operations (1.3)
- Extend the existing set of aggregate functions (1.4)
- Loosen restrictions on location steps (2.1)
- Provide a conditional expression (2.2)
- Define consistent implicit semantics for collection-valued subexpressions (2.3)
- Support string matching with regular expressions (3)
- Define the operator matrix and conversions (4.1)
- Allow scientific notation for numbers (4.2)
- Define cast and constructor functions (4.3)
- Support accessing the simple-type values of elements and attributes (4.5)
- Define the behavior of operators for null arguments (4.6)
-
+
XPath 2.0 SHOULDs
- Maintain backward compatibility with XPath 1.0 (1.5)
- Provide intersection and difference functions (1.6)
- Support the unary plus operator (1.7)
- Simplify string replacement (2.4.1)
- Simplify string padding (2.4.2)
- Simplify string case conversions (2.4.3)
- Support aggregation functions over collection-valued expressions (2.5)
- Add a “list” data type (4.4)
- Select elements/attributes based on an explicit XML Schema type (5.1)
- Select elements/attributes based on an XML Schema type hierarchy (5.2)
- Select elements based on XML Schema substitution groups (5.3)
- Support lookups based on XML Schema unique constraints and keys (5.4)
-
+
XPath 2.0 MUSTs
-
+
XPointer Background
- + XPointer Syntax
-
+
XPointer Beyond XPath
-
+
Extension Functions for XPath in XSLT
- Index
Referring to specific information inside an XML document is a little like finding a needle in a haystack: how do you differentiate the information you need from everything else? XPath and XPointer are two closely related languages that play a key role in XML processing by allowing developers to find these needles and manipulate embedded information. XPath describes a route for finding specific items by defining a path through the hierarchy of an XML document, abstracting only the information that's relevant for identifying the data. XPointer extends XPath to identify more complex parts of documents. The two technologies are critical for developers seeking needles in haystacks in various types of processing.
XPath and XPointer fills an essential need for XML developers by focusing directly on a critical topic that has been covered only briefly. Written by John Simpson, an author with considerable XML experience, the book offers practical knowledge of the two languages that underpin XML, XSLT and XLink. XPath and XPointer cuts through basic theory and provides real-world examples that you can use right away.
Written for XML and XSLT developers and anyone else who needs to address information in XML documents, the book assumes a working knowledge of XML and XSLT. It begins with an introduction to XPath basics. You'll learn about location steps and paths, XPath functions and numeric operators. Once you've covered XPath in depth, you'll move on to XPointer--its background, syntax, and forms of addressing. By the time you've finished the book, you'll know how to construct a full XPointer (one that uses an XPath location path to address document content) and completely understand both the XPath and XPointer features it uses.
XPath and XPointer contains material on the forthcoming XPath 2.0 spec and EXSLT extensions, as well as versions 1.0 of both XPath and XPointer. A succinct but thorough hands-on guide, no other book on the market provides comprehensive information on these two key XML technologies in one place.
Test the closed alpha on paperc.com
Book Details
Authors
Categories
Computers > Programming Languages > XML
Publishers
Publication year : 2007
License: All rights reserved ©
Times read: 1,034

