XPath and XPointer
John E. Simpson, O'Reilly Media, Inc. ISBN:0596002912, Edition: , 2002-07-31 Price: $29.99
Table of Content
Table of Content ~ 2
Preface ~ 4
Who Should Read This Book? ~ 4
Who Should Not Read This Book? ~ 4
Organization of the Book ~ 5
Conventions Used in This Book ~ 5
Comments and Questions ~ 6
Acknowledgments ~ 7
Chapter 1. Introducing XPath and XPointer ~ 8
1.1 Why XPath and XPointer? ~ 8
1.2 Antecedents/History ~ 9
1.3 XPath, XPointer, and Other XML-Related Specs ~ 12
1.4 XPath and XPointer Versus XQuery ~ 15
Chapter 2. XPath Basics ~ 17
2.1 The Node Tree: An Introduction ~ 17
2.2 XPath Expressions ~ 18
2.3 XPath Data Types ~ 24
2.4 Nodes and Node-Sets ~ 27
2.5 Node-Set Context ~ 38
2.6 String-Values ~ 40
Chapter 3. Location Steps and Paths ~ 43
3.1 XPath Expressions ~ 43
3.2 Location Paths ~ 45
3.3 Location Steps ~ 48
3.4 Compound Location Paths Revisited ~ 63
Chapter 4. XPath Functions and Numeric Operators ~ 64
4.1 Introduction to Functions ~ 64
4.2 XPath Function Types ~ 66
4.3 XPath Numeric Operators ~ 92
Chapter 5. XPath in Action ~ 95
5.1 XPath Visualiser: Some Background ~ 95
5.2 Sample XML Document ~ 97
5.3 General to Specific, Common to Far-Out ~ 99
Chapter 6. XPath 2.0 ~ 122
6.1 General Goals ~ 123
6.2 Specific Requirements ~ 126
Chapter 7. XPointer Background ~ 141
7.1 XPointer and Media types ~ 141
7.2 Some Definitions ~ 143
7.3 The Framework ~ 146
7.4 Error Types ~ 147
7.5 Encoding and Escaping Characters in XPointer ~ 148
Chapter 8. XPointer Syntax ~ 153
8.1 Shorthand Pointers ~ 153
8.2 Scheme-Based XPointer Syntax ~ 154
8.3 Using XPointers in a URI ~ 163
Chapter 9. XPointer Beyond XPath ~ 165
9.1 Why Extend XPath? ~ 165
9.2 Points and Ranges ~ 167
9.3 XPointer Extensions to Document Order ~ 174
9.4 XPointer Functions ~ 178
Appendix A. Extension Functions for XPath in XSLT ~ 187
A.1 Additional Functions in XSLT 1.0 ~ 187
A.2 EXSLT Extensions ~ 188
Colophon ~ 197
|