XML in a Nutshell, 3/e
暫譯: 《XML 精要,第 3 版》

Elliotte Rusty Harold, W. Scott Means

  • 出版商: O'Reilly
  • 定價: $1,488
  • 售價: 9.5$1,414
  • 語言: 英文
  • 頁數: 600
  • 裝訂: Paperback
  • ISBN: 0596007647
  • ISBN-13: 9780596007645
  • 相關分類: XML
  • 立即出貨 (庫存 < 3)

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

商品描述

Description:

If you're a developer working with XML, you know there's a lot to know about XML, and the XML space is evolving almost moment by moment. But you don't need to commit every XML syntax, API, or XSLT transformation to memory; you only need to know where to find it. And if it's a detail that has to do with XML or its companion standards, you'll find it--clear, concise, useful, and well-organized--in the updated third edition of XML in a Nutshell.

With XML in a Nutshell beside your keyboard, you'll be able to:

  • Quick-reference syntax rules and usage examples for the core XML technologies, including XML, DTDs, Xpath, XSLT, SAX, and DOM
  • Develop an understanding of well-formed XML, DTDs, namespaces, Unicode, and W3C XML Schema
  • Gain a working knowledge of key technologies used for narrative XML documents such as web pages, books, and articles technologies like XSLT, Xpath, Xlink, Xpointer, CSS, and XSL-FO
  • Build data-intensive XML applications
  • Understand the tools and APIs necessary to build data-intensive XML applications and process XML documents, including the event-based Simple API for XML (SAX2) and the tree-oriented Document Object Model (DOM)


This powerful new edition is the comprehensive XML reference. Serious users of XML will find coverage on just about everything they need, from fundamental syntax rules, to details of DTD and XML Schema creation, to XSLT transformations, to APIs used for processing XML documents. XML in a Nutshell also covers XML 1.1, as well as updates to SAX2 and DOM Level 3 coverage. If you need explanation of how a technology works, or just need to quickly find the precise syntax for a particular piece, XML in a Nutshell puts the information at your fingertips.

Simply put, XML in a Nutshell is the critical, must-have reference for any XML developer.

 

Table of Contents:

Preface


I. XML Concepts

1. Introducing XML
      The Benefits of XML
      Portable Data
      How XML Works
      The Evolution of XML

2. XML Fundamentals
      XML Documents and XML Files
      Elements, Tags, and Character Data
      Attributes
      XML Names
      References
      CDATA Sections
      Comments
      Processing Instructions
      The XML Declaration
      Checking Documents for Well-Formedness

3. Document Type Definitions (DTDs)
      Validation
      Element Declarations
      Attribute Declarations
      General Entity Declarations
      External Parsed General Entities
      External Unparsed Entities and Notations
      Parameter Entities
      Conditional Inclusion
      Two DTD Examples
      Locating Standard DTDs

4. Namespaces
      The Need for Namespaces
      Namespace Syntax
      How Parsers Handle Namespaces
      Namespaces and DTDs

5. Internationalization
      Character-Set Metadata
      The Encoding Declaration
      Text Declarations
      XML-Defined Character Sets
      Unicode
      ISO Character Sets
      Platform-Dependent Character Sets
      Converting Between Character Sets
      The Default Character Set for XML Documents
      Character References
      xml:lang

II. Narrative-like Documents

6. XML as a Document Format
      SGML's Legacy
      Narrative Document Structures
      TEI
      DocBook
      OpenOffice
      WordprocessingML
      Document Permanence
      Transformation and Presentation

7. XML on the Web
      XHTML
      Direct Display of XML in Browsers
      Authoring Compound Documents with Modular XHTML
      Prospects for Improved Web Search Methods

8. XSL Transformations (XSLT)
      An Example Input Document
      xsl:stylesheet and xsl:transform
      Stylesheet Processors
      Templates and Template Rules
      Calculating the Value of an Element with xsl:value-of
      Applying Templates with xsl:apply-templates
      The Built-in Template Rules
      Modes
      Attribute Value Templates
      XSLT and Namespaces
      Other XSLT Elements

9. XPath
      The Tree Structure of an XML Document
      Location Paths
      Compound Location Paths
      Predicates
      Unabbreviated Location Paths
      General XPath Expressions
      XPath Functions

10. XLinks
      Simple Links
      Link Behavior
      Link Semantics
      Extended Links
      Linkbases
      DTDs for XLinks

11. XPointers
      XPointers on URLs
      XPointers in Links
      Shorthand Pointers
      Child Sequences
      Namespaces
      Points
      Ranges

12. XInclude
      The include Element
      Including Text Files
      Content Negotiation
      Fallbacks
      XPointers

13. Cascading Style Sheets (CSS)
      The Levels of CSS
      CSS Syntax
      Associating Stylesheets with XML Documents
      Selectors
      The Display Property
      Pixels, Points, Picas, and Other Units of Length
      Font Properties
      Text Properties
      Colors

14. XSL Formatting Objects (XSL-FO)
      XSL Formatting Objects
      The Structure of an XSL-FO Document
      Laying Out the Master Pages
      XSL-FO Properties
      Choosing Between CSS and XSL-FO

15. Resource Directory Description Language (RDDL)
      What's at the End of a Namespace URL?
      RDDL Syntax
      Natures
      Purposes


III. Record-like Documents

16. XML as a Data Format
      Why Use XML for Data?
      Developing Record-Like XML Formats
      Sharing Your XML Format

17. XML Schemas
      Overview
      Schema Basics
      Working with Namespaces
      Complex Types
      Empty Elements
      Simple Content
      Mixed Content
      Allowing Any Content
      Controlling Type Derivation

18. Programming Models
      Common XML Processing Models
      Common XML Processing Issues
      Generating XML Documents

19. Document Object Model (DOM)
      DOM Foundations
      Structure of the DOM Core
      Node and Other Generic Interfaces
      Specific Node-Type Interfaces
      The DOMImplementation Interface
      DOM Level 3 Interfaces
      Parsing a Document with DOM
      A Simple DOM Application

20. Simple API for XML (SAX)
      The ContentHandler Interface
      Features and Properties
      Filters


IV. Reference

21. XML Reference
      How to Use This Reference
      Annotated Sample Documents
      XML Syntax
      Constraints
      XML 1.0 Document Grammar
      XML 1.1 Document Grammar

22. Schemas Reference
      The Schema Namespaces
      Schema Elements
      Built-in Types
      Instance Document Attributes

23. XPath Reference
      The XPath Data Model
      Data Types
      Location Paths
      Predicates
      XPath Functions

24. XSLT Reference
      The XSLT Namespace
      XSLT Elements
      XSLT Functions
      TrAX

25. DOM Reference
      Object Hierarchy
      Object Reference

26. SAX Reference
      The org.xml.sax Package
      The org.xml.sax.helpers Package
      SAX Features and Properties
      The org.xml.sax.ext Package

27. Character Sets
      Character Tables
      HTML4 Entity Sets
      Other Unicode Blocks


Index

 

商品描述(中文翻譯)

描述:
如果您是一位從事 XML 開發的開發者,您知道有很多關於 XML 的知識,而 XML 的領域幾乎是瞬息萬變的。但您不需要將每一個 XML 語法、API 或 XSLT 轉換記在心中;您只需要知道在哪裡可以找到它。如果這是一個與 XML 或其相關標準有關的細節,您將會在更新的第三版《XML in a Nutshell》中找到它——清晰、簡潔、有用且組織良好。

有了《XML in a Nutshell》在您的鍵盤旁,您將能夠:
- 快速參考核心 XML 技術的語法規則和使用範例,包括 XML、DTD、Xpath、XSLT、SAX 和 DOM
- 理解良構 XML、DTD、命名空間、Unicode 和 W3C XML Schema
- 獲得用於敘述性 XML 文件(如網頁、書籍和文章)的關鍵技術的工作知識,例如 XSLT、Xpath、Xlink、Xpointer、CSS 和 XSL-FO
- 建立數據密集型的 XML 應用程式
- 理解構建數據密集型 XML 應用程式和處理 XML 文件所需的工具和 API,包括基於事件的簡單 XML API (SAX2) 和樹狀文檔對象模型 (DOM)

這本強大的新版本是全面的 XML 參考資料。XML 的重度使用者將會發現幾乎所有他們需要的內容,從基本的語法規則,到 DTD 和 XML Schema 創建的細節,再到 XSLT 轉換,以及用於處理 XML 文件的 API。《XML in a Nutshell》還涵蓋了 XML 1.1,以及對 SAX2 和 DOM Level 3 的更新。如果您需要解釋某項技術的運作方式,或只是需要快速找到特定部分的精確語法,《XML in a Nutshell》將資訊觸手可及。

簡而言之,《XML in a Nutshell》是任何 XML 開發者必備的關鍵參考資料。

目錄:
前言
I. XML 概念
1. 介紹 XML
- XML 的好處
- 可攜式數據
- XML 的運作方式
- XML 的演變
2. XML 基礎
- XML 文件和 XML 文件
- 元素、標籤和字符數據
- 屬性
- XML 名稱
- 引用
- CDATA 區段
- 註解
- 處理指令
- XML 聲明
- 檢查文件的良構性
3. 文檔類型定義 (DTDs)
- 驗證
- 元素聲明
- 屬性聲明
- 一般實體聲明
- 外部解析的一般實體
- 外部未解析實體和標註
- 參數實體
- 條件包含
- 兩個 DTD 範例
- 定位標準 DTDs
4. 命名空間
- 命名空間的需求
- 命名空間語法
- 解析器如何處理命名空間
- 命名空間和 DTDs
5. 國際化
- 字符集元數據
- 編碼聲明
- 文本聲明
- XML 定義的字符集
- Unicode
- ISO 字符集
- 平台依賴的字符集
- 字符集之間的轉換
- XML 文件的默認字符集
- 字符引用
- xml:lang
II. 敘述性文件
6. XML 作為文檔格式
- SGML 的遺產
- 敘述性文檔結構
- TEI
- DocBook
- OpenOffice
- WordprocessingML
- 文檔持久性
- 轉換和呈現
7. 網頁上的 XML
- XHTML
- 瀏覽器中直接顯示 XML
- 使用模組化 XHTML 創建複合文檔
- 改進網頁搜索方法的前景
8. XSL 轉換 (XSLT)
- 一個範例輸入文檔
- xsl:stylesheet 和 xsl:transform
- 樣式表處理器
- 模板和模板規則
- 使用 xsl:value-of 計算元素的值
- 使用 xsl:apply-templates 應用模板
- 內建模板規則
- 模式
- 屬性值模板
- XSLT 和命名空間
- 其他 XSLT 元素
9. XPath
- XML 文檔的樹狀結構
- 定位路徑
- 複合定位路徑
- 謂詞
- 未縮寫的定位路徑
- 一般 XPath 表達式
- XPath 函數
10. XLinks
- 簡單鏈接
- 鏈接行為
- 鏈接語義
- 擴展鏈接
- 鏈接庫
- XLinks 的 DTDs
11. XPointers
- URL 上的 XPointers
- 鏈接中的 XPointers
- 簡寫指針
- 子序列
- 命名空間
- 點
- 範圍
12. XInclude
- include 元素
- 包含文本文件
- 內容協商
- 回退
- XPointers
13. 層疊樣式表 (CSS)
- CSS 的層級
- CSS 語法
- 將樣式表與 XML 文件關聯
- 選擇器
- 顯示屬性
- 像素、點、派卡和其他長度單位
- 字體屬性
- 文本屬性
- 顏色
14. XSL 格式化對象 (XSL-FO)
- XSL 格式化對象
- XSL-FO 文檔的結構
- 布局主頁
- XSL-FO 屬性
- 在 CSS 和 XSL-FO 之間選擇
15. 資源目錄描述語言 (RDDL)
- 命名空間 URL 的結尾是什麼?
- RDDL 語法
- 性質
- 目的
III. 記錄型文件
16. XML 作為數據格式
- 為什麼使用 XML 作為數據?
- 開發記錄型 XML 格式
- 分享您的 XML 格式
17. XML Schema
- 概述
- Schema 基礎
- 使用命名空間
- 複雜類型
- 空元素
- 簡單內容
- 混合內容
- 允許任何內容
- 控制類型衍生
18. 程式設計模型
- 常見的 XML 處理模型
- 常見的 XML 處理問題
- 生成 XML 文件
19. 文檔對象模型 (DOM)
- DOM 基礎
- DOM 核心的結構
- 節點和其他通用介面
- 特定節點類型介面
- DOMImplementation 介面
- DOM Level 3 介面
- 使用 DOM 解析文檔
- 一個簡單的 DOM 應用程式
20. 簡單 XML API (SAX)
- ContentHandler 介面
- 特性和屬性
- 過濾器
IV. 參考
21. XML 參考
- 如何使用此參考
- 附註範例文檔
- XML 語法
- 約束
- XML 1.0 文檔語法
- XML 1.1 文檔語法
22. Schema 參考
- Schema 命名空間
- Schema 元素
- 內建類型
- 實例文檔屬性
23. XPath 參考
- XPath 數據模型
- 數據類型
- 定位路徑
- 謂詞