на главную поиск contacts

XML Schema

Опубликовано на портале: 14-11-2006
Изд-во: O'Reilly Media, 2002, 396 с.
The W3C's XML Schema offers a powerful set of tools for defining acceptable XML document structures and content. While schemas are powerful, that power comes with substantial complexity. This book explains XML Schema foundations, a variety of different styles for writing schemas, simple and complex types, datatypes and facets, keys, extensibility, documentation, design choices, best practices, and limitations. Complete with references, a glossary, and examples throughout.


1. Schema Uses and Development

     What Schemas Do for XML
     W3C XML Schema

2. Our First Schema

     The Instance Document

     Our First Schema

     First Findings

3. Giving Some Depth to Our First Schema

     Working From the Structure of the Instance Document

     New Lessons

4. Using Predefined Simple Datatypes

     Lexical and Value Spaces

     Whitespace Processing

     String Datatypes

     Numeric Datatypes

     Date and Time Datatypes

     List Types

     What About anySimpleType?

     Back to Our Library

5. Creating Simple Datatypes

     Derivation By Restriction

     Derivation By List

     Derivation By Union

     Some Oddities of Simple Types

     Back to Our Library

6. Using Regular Expressions to Specify Simple Datatypes

     The Swiss Army Knife

     The Simplest Possible Patterns


     More Atoms

     Common Patterns

     Back to Our Library

7. Creating Complex Datatypes

     Simple Versus Complex Types

     Examining the Landscape

     Simple Content Models

     Complex Content Models

     Mixed Content Models

     Empty Content Models

     Back to Our Library

     Derivation or Groups

8. Creating Building Blocks

     Schema Inclusion

     Schema Inclusion with Redefinition

     Other Alternatives

     Simplifying the Library

9. Defining Uniqueness, Keys, and Key References

     xs:ID and xs:IDREF

     XPath-Based Identity Checks

     ID/IDREF Versus xs:key/xs:keyref

     Using xs:key and xs:unique As Co-occurrence Constraints

10. Controlling Namespaces

     Namespaces Present Two Challenges to Schema Languages

     Namespace Declarations

     To Qualify Or Not to Qualify?

     Disruptive Attributes

     Namespaces and XPath Expressions

     Referencing Other Namespaces

     Schemas for XML, XML Base and XLink

     Namespace Behavior of Imported Components

     Importing Schemas with No Namespaces

     Chameleon Design

     Allowing Any Elements or Attributes from a Particular Namespace

11. Referencing Schemas and Schema Datatypes in XML Documents

     Associating Schemas with Instance Documents

     Defining Element Types

     Defining Nil (Null) Values

     Beware the Intrusive Nature of These Features...

12. Creating More Building Blocks Using Object-Oriented Features

     Substitution Groups

     Controlling Derivations

13. Creating Extensible Schemas

     Extensible Schemas

     The Need for Open Schemas

14. Documenting Schemas

     Style Matters

     The W3C XML Schema Annotation Element

     Foreign Attributes

     XML 1.0 Comments

     Which One and What For?

15. Elements Reference Guide

16. Datatype Reference Guide

A. XML Schema Languages

B. Work in Progress



Ключевые слова

См. также:
Elliotte Rusty Harold, W. Scott Means
[Статья глоссария]
[Статья глоссария]
Erik T. Ray
Michael Fitzgerald
Niel M. Bornstein
Chuck Musciano, Bill Kennedy