Book description
XPath is to XML as SQL is to databases: XML applications need XPath to locate specific data within an XML document for further processing with other XML applications such as XSLT, XQuery, XPointer, XLink and DOM level 3. With XPath, these applications offer developers a full toolkit for transforming, linking, and searching XML data. Developers need to understand XPath to fully exploit XML in their applications, and they have few resources beyond the W3C specification. XPath Kick Start will examine every aspect of XPath in detail, including its influence on and use with these other XML standards.
With each technique illustrated with real-world examples, the book starts with coverage of the essentials of XPath, including nodes, expressions, functions and operators. The second half of the book details XPath in practice - from manipulating XML data to transforming, linking and querying XML documents.
Table of contents
- Copyright
- About the Author
- Acknowledgments
- We Want to Hear from You!
- Foreword
- Introduction
- 1. Essential XPath
- 2. The XPath Data Model
- 3. Location Steps and Paths
- 4. XPath 1.0 Functions and Operators
-
5. XPath with XSLT
- Working with XSLT
- Techniques for Performing XSLT Transformations
- Creating Stylesheets
- Understanding the match and select Attributes
- Copying Nodes
- Handling Whitespace
- Making Choices with <xsl:if> and <xsl:choose>
- Understanding the Default Template Rules
- Displaying Messages While Processing XSLT Stylesheets
- Setting Output Document Type
- In Brief
- 6. XPath with XPointer, XLink, and XQuery
- 7. Introducing XPath 2.0
-
8. XPath 2.0 Expressions and Operators
- Creating Primary Expressions
- Creating Arithmetic Expressions
- Creating Path Expressions
- Creating Sequence Expressions
- Creating Comparison Expressions
- Creating Logical Expressions
- Creating for Expressions
- Creating Conditional Expressions
- Creating Quantified Expressions
- Creating Expressions That Work on Types
- In Brief
- 9. The XPath 2.0 Numeric, Constructor, and Context Functions
-
10. XPath 2.0 String Functions
-
Working on Strings
- The fn:compare Function
- The fn:concat Function
- The fn:string-join Function
- The fn:starts-with Function
- The fn:ends-with Function
- The fn:contains Function
- The fn:substring Function
- The fn:string-length Function
- The fn:substring-before Function
- The fn:substring-after Function
- The fn:normalize-space Function
- The fn:normalize-unicode Function
- The fn:upper-case Function
- The fn:lower-case Function
- The fn:translate Function
- The fn:escape-uri Function
- Unicode Code Point Functions
- Using Pattern Matching
- In Brief
-
Working on Strings
-
11. XPath 2.0 Boolean, QName, and Date Functions
- Boolean Functions
- Functions That Work with Dates and Times
-
Functions That Extract Data from Date/Time Values
- The fn:get-years-from-yearMonthDuration Function
- The fn:get-months-from-yearMonthDuration Function
- The fn:get-days-from-dayTimeDuration Function
- The fn:get-hours-from-dayTimeDuration Function
- The fn:get-minutes-from-dayTimeDuration Function
- The fn:get-seconds-from-dayTimeDuration Function
- The fn:get-year-from-dateTime Function
- The fn:get-month-from-dateTime Function
- The fn:get-day-from-dateTime Function
- The fn:get-hours-from-dateTime Function
- The fn:get-minutes-from-dateTime Function
- The fn:get-seconds-from-dateTime Function
- The fn:get-timezone-from-dateTime Function
- The fn:get-year-from-date Function
- The fn:get-month-from-date Function
- The fn:get-day-from-date Function
- The fn:get-timezone-from-date Function
- The fn:get-hours-from-time Function
- The fn:get-minutes-from-time Function
- The fn:get-seconds-from-time Function
- The fn:get-timezone-from-time Function
- Functions That Adjust Time Zones
- Subtracting xs:dateTime Values
- Functions That Work with QNames
- In Brief
-
12. XPath 2.0 Node and Sequence Functions
- Using Node Functions
-
The XPath 2.0 Sequence Functions
- The fn:zero-or-one Function
- The fn:one-or-more Function
- The fn:exactly-one Function
- The fn:boolean Function
- The fn:index-of Function
- The fn:empty Function
- The fn:exists Function
- The fn:distinct-values Function
- The fn:insert-before Function
- The fn:remove Function
- The fn:subsequence Function
- The fn:unordered Function
- The fn:deep-equal Function
- The fn:count Function
- The fn:avg Function
- The fn:max Function
- The fn:min Function
- The fn:sum Function
- The fn:id Function
- The fn:idref Function
- The fn:doc Function
- The fn:collection Function
- In Brief
Product information
- Title: XPath: Navigating XML with XPath 1.0 and 2.0 Kick Start
- Author(s):
- Release date: December 2003
- Publisher(s): Sams
- ISBN: None
You might also like
book
Beginning XSLT and XPath: Transforming XML Documents and Data
Provides the basic education in the XSLT processing model that developers have requested The growth of …
book
XSLT and XPATH: A Guide to XML Transformations
Gain total control over your information with XSLT and XPath! Master XSLT and XPath—the "keys to …
book
XPath and XPointer
Referring to specific information inside an XML document is a little like finding a needle in …
book
Querying XML
XML has become the lingua franca for representing business data, for exchanging information between business partners …