SKIP THE SHIPPING
Use code NOSHIP during checkout to save 40% on eligible eBooks, now through January 5. Shop now.
Register your product to gain access to bonus material or receive a coupon.
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.
Converting DTDs to XML Schemas
Exploring "Blawgs": Weblogs with a Legal Theme
Converting a DTD into a Schema
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 <schema> 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. <element> Properties. Constraining Elements with Attributes. Content Models. <simpleType>. <complexType>. 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 SchemaAdvantages 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.