Special Edition Using XML Schema

David Gulbransen

  • 出版商: QUE
  • 出版日期: 2001-11-01
  • 售價: $2,680
  • 貴賓價: 9.5$2,546
  • 語言: 英文
  • 頁數: 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 數據。

目錄:
引言
第一部分:XML Schema 基礎知識
1. XML Schema 概述
2. Schema 結構
3. DTD 轉換為 Schema

第二部分:XML Schema 基礎知識
4. XML Schema 的組件
5. 元素聲明
6. 屬性
7. 模型組
8. 示例 Schema:聯繫人 Schema

第三部分:XML Schema 數據類型
9. 數據類型介紹
10. 原始數據類型

這本書以深入且實用的方式介紹了 XML Schema 的基礎知識,並提供了豐富的示例和實際應用。無論您是初學者還是有經驗的開發人員,都能從中獲得寶貴的知識和技能。