Schemas
What are Schemas?
About Schemas
What's Wrong with DTDs?
DTDs vs. Schemas
Schema versions
greeting.xml
greeting.xsd according to the April 7 Working Draft
Attaching the schema to the document without namespaces
Validating the document with Xerces-J 1.2.0
An Invalid Document
Checking the Invalid Document
greeting.xsd in the Candidate Recommendation
New XSI namespace
Validating the document with XSV
An Invalid Document
Checking the Invalid Document
A More Complex Document
Complex vs. Simple Types
A More Complex Schema
Three main schema elements:
Validating the Song Document
Fixed Hot Cop
Primitive Data Types for Schemas
Numeric Data Types for Schemas
Time Data Types for Schemas
XML Data Types for Schemas
Assorted Data Types for Schemas
A Document with Attributes
Declaring Attributes
Element Content
Declaring Complex Types
Sharing Content Models
Mixed Content
Declaring Mixed Content
When Order Doesn't Matter
The xsd:all Group
Choices
Sequences
Adding a Price
Derived Types
Regular Expressions
The xsd:simpletype element
The Price Schema
Default Namespace
The targetNamespace attribute
A Song with a Namespace
A Schema for a Document that Uses the Default Namespace
Multiple Namespaces, Multiple Schemas
XLink Schema
Song Schema with XLink Support
Annotations
What Schemas don't do
Schema Alternatives
Schematron
RELAX
DTDs aren't Dead!
To Learn More
Questions?
Entire Presentation as Single File
Start
|
Cafe con Leche
Copyright 2000
Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified November 8, 2000