Special Edition Using XML Schema
暫譯: 特別版:使用 XML Schema

David Gulbransen

  • 出版商: QUE
  • 出版日期: 2001-11-01
  • 售價: $2,730
  • 貴賓價: 9.5$2,594
  • 語言: 英文
  • 頁數: 496
  • 裝訂: Paperback
  • ISBN: 0789726076
  • ISBN-13: 9780789726070
  • 相關分類: XML
  • 海外代購書籍(需單獨結帳)

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

商品描述

Special Edition Using XML Schema starts with an explanation of Schema basics: why they were created, the advantages they offer over DTDs, and an overview of the two major parts of the specification: Structure and Datatypes. Next, the author explains the differences between DTDs and Schemas, and demonstrates a simple DTD-to-Schema conversion. The bulk of the book explains the many parts of Schemas, dissecting the structure of a Schema and then introducing Datatypes. Each section includes practical examples, which the author creates and explains, building from the material discussed in the previous section. At the end of the book, the author demonstrates a large, real-world example Schema, showing how all the parts of Schemas interact and how readers would build XML data from the example Schema.

Table of Contents

Introduction.

I. XMLSCHEMA BASICS.

1. An Overview of XML Schema.

The Politics of XML. A Schema Is Not Necessarily an XML Schema. How Schema Relate to Document Type Definitions. The Evolution of XML Schema. Advantages of Schema. Why the Schema Recommendation Has Two Parts. Overview of Part One: Structures. Overview of Part Two: Datatypes. Conclusion. In the Real World.


2. Schema Structure.

Schema Are XML. The Element. Using Namespaces in Schema. Comparing a DTD and an XML Schema. Conclusion. In the Real World.


3. Converting a DTD into a Schema.

The Legacy of Document Type Definitions. Differences Between DTDs and Schema. A Simple Airline Ticket Itinerary DTD. Converting the DTD to a Schema. The Finished Schema. Resources for Converting DTDs. Conclusions. In the Real World.

II. XMLSCHEMA BASICS.


4. The Components of XML Schema.

Introducing Components. Handling Names with Schema. General Constraints and Validation Rules. Type Definitions. Element Schema Components. Attribute Schema Components. Notations. Particles, Model Groups, and Annotations. Conclusions. In the Real World.


5. Element Declarations.

The Importance of Elements. Defining Elements with Schema. Properties. Constraining Elements with Attributes. Content Models. . . Substitution Groups. Conclusion. In the Real World.


6. Attributes.

Attributes Are Fundamental. Attribute Properties. Defining Attributes with Schema. attributeGroup. anyAttribute. Built-in Attributes. Conclusion. In the Real World.


7. Model Groups.

Model Groups and Schema Content. What Is a Model Group? Particles. Defining Model Groups. Wildcards. Notations. Annotations. Conclusions. In the Real World.


8. Example Schema: A Contact Schema.

Building an XML Schema. Outlining the Schema. Building the Schema. Bringing It All Together. Conclusion. In the Real World.

III. XMLSCHEMA DATATYPES.


9. Introducing Datatypes.

What Is a Datatype? How Datatypes Function in Schema Namespaces and Datatypes. Primitive and Derived Datatypes. Built-In and User-Derived Datatypes. Facets. Atomic, List, and Union Datatypes. Conclusion. In the Real World.


10. Primitive Datatypes.

Introducing Primitive Datatypes. string. boolean. Numeric Datatypes. Date and Time Datatypes. Binary Datatypes. anyURI. QName. NOTATION. Conclusion. In the Real World.


11. Derived Datatypes.

Built-In Derived Datatypes. normalizedString. token. language. Backward Compatibility. Name. integer. long. int. short. byte. Conclusion. In the Real World.


12. Representing and Modeling Data.

Working with Data. Deriving Simple Types. Deriving Complex Types. Anonymous Versus Named Types. Scope. Abstract Types. Controlling Derived Types. Uniqueness. Regular Expressions and XML Schema. Conclusion. In the Real World.


13. Example Schema: Customer Invoice.

Outlining the Schema Requirements. Defining the Datatypes. Writing the Schema. Conclusion. In the Real World.

IV. DEVELOPING A PURCHASE ORDER SCHEMA.


14. Building Multipart Schema

Advantages of Multipart Schema. Combining Multiple Schema into a Single Schema. Type Libraries. Working with Namespaces. An Example: The Invoice Schema Revisited. Conclusions. In the Real World.


15. An Example Schema: Human Resources.

Outlining the Project. The Scenario. A Sample Instance Document. Establishing Relationships. Summarizing Components. Establishing the Datatypes. Planning the Multiple Schema. Conclusions. In the Real World.


16. Building and Using the Schema.

Getting Started. The Modular Approach. Bringing It All Together. Using the Schema. Conclusions. In the Real World.


17. XML Schema Best Practices.

Schema Best Practices. Multipart Schema. Elements and Datatypes. Scope Issues. Namespaces. Best Practices Resources. Conclusions. In the Real World.


18. Schema Alternatives and Future Directions.

TREX. RELAX. Schematron. OASIS and Schema. RELAX NG. The Semantic Web. Conclusion. In the Real World.

V. APPENDIXES.


Appendix A. Schema Resources.

XML and XML Schema Resources. W3C Official Web Sites. XML Resources. XML Schema Resources. Schema Debates and Alternatives.


Appendix B. Schema Alternatives: TREX.

Introducing TREX. Structure of a TREX Pattern. Elements in TREX. Attributes in TREX. Datatypes in TREX. Modularity and Reuse. Features Not Included in TREX. A TREX Example. Conclusion.


Appendix C. Schema Alternatives: RELAX.

Introducing RELAX. The RELAX Core. A RELAX Document. Elements in RELAX. Attributes in RELAX. Advanced Roles. Datatypes in RELAX. Other RELAX Features. Missing Features. A Sample RELAX Document. Conclusion.


Appendix D. Schema Alternatives: Schematron.

Introduction to Schematron. XSLT and XPath. Schematron Basics. Integrating Schematron with XML Schema. A Schematron Example. Conclusion.


Index.

商品描述(中文翻譯)

特別版使用 XML Schema》首先解釋了 Schema 的基本概念:為什麼會創建它們、相較於 DTD 的優勢,以及規範的兩個主要部分的概述:結構和數據類型。接下來,作者解釋了 DTD 和 Schema 之間的差異,並演示了一個簡單的 DTD 到 Schema 的轉換。本書的主要內容解釋了 Schema 的許多部分,剖析了 Schema 的結構,然後介紹了數據類型。每個部分都包含實用的範例,作者根據前一部分討論的內容創建並解釋這些範例。在書的最後,作者展示了一個大型的實際範例 Schema,顯示了 Schema 的所有部分如何互動,以及讀者如何從範例 Schema 構建 XML 數據。

目錄

導言。

I. XMLSCHEMA 基礎。



1. XML Schema 概述。



XML 的政治。Schema 不一定是 XML Schema。Schema 與文檔類型定義的關係。XML Schema 的演變。Schema 的優勢。為什麼 Schema 建議有兩個部分。第一部分概述:結構。第二部分概述:數據類型。結論。在現實世界中的應用。


2. Schema 結構。


Schema 是 XML。元素。使用命名空間於 Schema 中。比較 DTD 和 XML Schema。結論。在現實世界中的應用。


3. 將 DTD 轉換為 Schema。


文檔類型定義的遺產。DTD 和 Schema 之間的差異。一個簡單的航空票行程 DTD。將 DTD 轉換為 Schema。完成的 Schema。轉換 DTD 的資源。結論。在現實世界中的應用。

II. XMLSCHEMA 基礎。



4. XML Schema 的組件。



介紹組件。使用 Schema 處理名稱。一般約束和驗證規則。類型定義。元素 Schema 組件。屬性 Schema 組件。符號。粒子、模型組和註釋。結論。在現實世界中的應用。


5. 元素聲明。


元素的重要性。使用 Schema 定義元素。屬性。使用屬性約束元素。內容模型。。。替代群組。結論。在現實世界中的應用。


6. 屬性。


屬性是基本的。屬性屬性。使用 Schema 定義屬性。attributeGroup。anyAttribute。內建屬性。結論。在現實世界中的應用。


7. 模型組。


模型組和 Schema 內容。什麼是模型組?粒子。定義模型組。通配符。符號。註釋。結論。在現實世界中的應用。


8. 範例 Schema:聯絡人 Schema。


構建 XML Schema。概述 Schema。構建 Schema。將所有部分整合在一起。結論。在現實世界中的應用。

III. XMLSCHEMA 數據類型。



9. 介紹數據類型。



什麼是數據類型?數據類型在 Schema 命名空間和數據類型中的功能。原始和衍生數據類型。內建和用戶衍生數據類型。特徵。原子、列表和聯合數據類型。結論。在現實世界中的應用。


10. 原始數據類型。


介紹原始數據類型。string。boolean。數字數據類型。日期和時間數據類型。二進制數據類型。anyURI。QName。NOTATION。結論。在現實世界中的應用。


11. 衍生數據類型。


內建衍生數據類型。normalizedString。token。language。向後相容性。Name。integer。long。int。short。byte。結論。在現實世界中的應用。


12. 表示和建模數據。


處理數據。衍生簡單類型。衍生複雜類型。匿名類型與命名類型。範圍。抽象類型。控制衍生類型。唯一性。正則表達式和 XML Schema。結論。在現實世界中的應用。


13. 範例 Schema:客戶發票。


概述 Schema 要求。定義數據類型。編寫 Schema。結論。在現實世界中的應用。

IV. 開發採購訂單 Schema。



14. 構建多部分 Schema



多部分 Schema 的優勢。將多個 Schema 組合成單一 Schema。類型庫。使用命名空間。範例:重新檢視發票 Schema。結論。在現實世界中的應用。


15. 範例 Schema:人力資源。


概述專案。情境。一個範例實例文檔。建立關係。總結組件。建立數據類型。規劃多個 Schema。結論。在現實世界中的應用。


16. 構建和使用 Schema。


開始。模組化方法。將所有部分整合在一起。使用 Schema。結論。在現實世界中的應用。


17. XML Schema 最佳實踐。


Schema 最佳實踐。多部分 Schema。元素和數據類型。範圍問題。命名空間。最佳實踐資源。結論。在現實世界中的應用。


18. Schema 替代方案和未來方向。


TREX。RELAX。Schematron。OASIS 和 Schema。RELAX NG。語義網。結論。在現實世界中的應用。

V. 附錄。



附錄 A. Schema 資源。



XML 和 XML Schema 資源。W3C 官方網站。XML 資源。XML Schema 資源。Schema 辯論和替代方案。


附錄 B. Schema 替代方案:TREX。


介紹 TREX。TREX 模式的結構。TREX 中的元素。TREX 中的屬性。TREX 中的數據類型。模組化和重用。TREX 中不包含的特徵。一個 TREX 範例。結論。


附錄 C. Schema 替代方案:RELAX。


介紹 RELAX。RELAX 核心。一個 RELAX 文檔。RELAX 中的元素。RELAX 中的屬性。進階角色。RELAX 中的數據類型。其他 RELAX 特徵。缺失的特徵。一個範例 RELAX 文檔。結論。


附錄 D. Schema 替代方案:Schematron。


介紹 Schematron。XSLT 和 XPath。Schematron 基礎。將 Schematron 與 XML Schema 整合。一個 Schematron 範例。結論。


索引。