XPath and XPointer
暫譯: XPath 與 XPointer

John Simpson

  • 出版商: O'Reilly
  • 出版日期: 2002-09-03
  • 售價: $1,420
  • 貴賓價: 9.5$1,349
  • 語言: 英文
  • 頁數: 210
  • 裝訂: Paperback
  • ISBN: 0596002912
  • ISBN-13: 9780596002916
  • 已過版

買這商品的人也買了...

相關主題

商品描述

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.

Table of Contents

Preface

1. Introducing XPath and XPointer

2. XPath Basics

3. Location Steps and Paths

4. XPath Functions and Numeric Operators

5. XPath in Action

6. XPath 2.0

7. XPointer Background

8. XPointer Syntax

9. XPointer Beyond XPath

A. Extension Functions for XPath in XSLT

Index

商品描述(中文翻譯)

參考 XML 文件內的特定資訊有點像在一堆稻草中尋找針:你如何從其他所有資訊中區分出你所需的資訊?XPath 和 XPointer 是兩種密切相關的語言,在 XML 處理中扮演著關鍵角色,允許開發人員找到這些針並操作嵌入的資訊。XPath 通過定義 XML 文件層次結構中的路徑來描述尋找特定項目的路徑,僅抽象出與識別數據相關的資訊。XPointer 擴展了 XPath,以識別文件中更複雜的部分。這兩種技術對於尋找稻草堆中針的開發人員來說至關重要,適用於各種處理類型。

《XPath 和 XPointer》滿足了 XML 開發人員的基本需求,直接聚焦於一個僅被簡要涵蓋的關鍵主題。這本書的作者 John Simpson 擁有相當的 XML 經驗,提供了有關支撐 XML 的兩種語言 XSLT 和 XLink 的實用知識。《XPath 和 XPointer》突破了基本理論,提供了可以立即使用的現實世界範例。

本書是為 XML 和 XSLT 開發人員以及任何需要處理 XML 文件中資訊的人士撰寫的,假設讀者對 XML 和 XSLT 有一定的工作知識。書中首先介紹了 XPath 的基本概念。你將學習到位置步驟和路徑、XPath 函數和數字運算符。一旦深入了解了 XPath,你將進入 XPointer 的內容——它的背景、語法和尋址形式。當你完成這本書時,你將知道如何構建完整的 XPointer(使用 XPath 位置路徑來尋址文檔內容),並完全理解它所使用的 XPath 和 XPointer 特性。

《XPath 和 XPointer》包含即將推出的 XPath 2.0 規範和 EXSLT 擴展的材料,以及 XPath 和 XPointer 的 1.0 版本。這是一本簡潔但全面的實用指南,市場上沒有其他書籍能在一個地方提供這兩種關鍵 XML 技術的綜合資訊。

目錄

前言

1. 介紹 XPath 和 XPointer
2. XPath 基礎
3. 位置步驟和路徑
4. XPath 函數和數字運算符
5. XPath 實作
6. XPath 2.0
7. XPointer 背景
8. XPointer 語法
9. 超越 XPath 的 XPointer
A. XSLT 中 XPath 的擴展函數
索引