XPath and XPointer
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 fi...
Autor principal: | |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
Beijing ; Sebastopol, California :
O'Reilly
2002.
|
Edición: | 1st edition |
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009627244606719 |
Tabla de Contenidos:
- Table of Contents; Preface; Who Should Read This Book?; Who Should Not Read This Book?; Organization of the Book; Conventions Used in This Book; Comments and Questions; Acknowledgments; Introducing XPath and XPointer; Why XPath and XPointer?; Antecedents/History; DSSSL; XSL; TEI; Intermedia; XPath, XPointer, and Other XML-Related Specs; Specs Dependent on XPath and XPointer; XPath and XPointer Versus XQuery; XPath Basics; The Node Tree: An Introduction; XPath Expressions; Location Steps and Location Paths; Expression Syntax; Tokens; Delimiters
- Combining tokens and delimiters into complete expressionsXPath Data Types; Strings; Numeric Values; Boolean Values; Nodes and Node-Sets; Node Properties; Node names; Document order; Family relationships; Node-Sets; Node Types; The root node; Element nodes; Attribute nodes; PI nodes; Comment nodes; Text nodes; Namespace nodes; XPath node types and the XML Infoset; Node-Set Context; String-Values; String-Value of a Node-Set; Location Steps and Paths; XPath Expressions; The Filesystem Analogy; Points of Similarity, Points of Difference; Location Paths; The Importance of Context
- Absolute Versus Relative Location PathsCompound Location Paths; Location Steps; The Big Picture; The Node Test; The Axis; Defaults and shortcuts; Restrictions by context node type; Axes and efficiency; The Predicate; Nesting predicates; Compound predicates; Predicates with a single value and no operator; Special case: numeric-valued predicates; "Stacked" predicates; Compound Location Paths Revisited; XPath Functions and Numeric Operators; Introduction to Functions; What Functions Do; Functions Within Functions; XPath Function Types; Node-Set Functions; last(); position(); count(nodeset)
- id(anytype)id() and node-set arguments; local-name(nodeset?); namespace-uri(nodeset?); name(nodeset?); String Functions; string(anytype?); concat(string1, string2, ...); starts-with(string1, string2); contains(string1, string2); substring(string, number1, number2?); substring-before(string1, string2) and substring-after(string1, string2); string-length(string?); normalize-space(string?); translate(string1, string2, string3); Boolean Functions; boolean(anytype); not(boolean); true() and false(); lang(string); Numeric Functions; number(anytype?); sum(nodeset); floor(number) and ceiling(number)
- round(number)XPath Numeric Operators; div; mod; XPath in Action; XPath Visualiser: Some Background; Sample XML Document; General to Specific, Common to Far-Out; The Node Test; Axes; Predicates; Functions; Sublimely Ridiculous; XPath 2.0; General Goals; Simplify Manipulation of XML Schema-Typed Content; Simplify Manipulation of String Content; Support Related XML Standards; Improve Ease of Use; Improve Interoperability; Improve i18n Support; Maintain Backward Compatibility; Enable Improved Processor Efficiency; Specific Requirements; XPath 2.0 MUSTs
- Express its data model in terms of the XML Infoset (1.1)