More XML Schema!

Composition, Documentation, Re-usable Types, Simple Type Derivation, and the PSVI

R. Alexander Milowski

milowski@sims.berkeley.edu

School of Information Management and Systems

#1

Re-usable Complex Types

#2

Only Elements are in the Document

#3

Schema Composition

#4

xs:include

#5

xs:import

#6

Example of Import

#7

Import Chains

#8

Three Simple Rules for the Instance

  1. Global declarations require qualified name in the instance.

  2. Local declarations are unqualified unless you specifically say otherwise.

  3. If your declaration requires a qualified name, the namespace is the value of the 'targetNamespace' of the document where the declaration occurs.

#9

Import Chains Example

#10

Import Chains and the Instance

#11

Local Elements and Importing

#12

A Rainbow of Namespaces

#13

Qualifying All Local Elements

#14

Simple Type Derivation

#15

Restricting Values

#16

Range Restrictions

#17

Length Restrictions

#18

Digit Restrictions

#19

Whitespace Restrictions

#20

Enumerated Value Restrictions

#21

Pattern Restrictions

#22

Atomic Values and Types

#23

List Simple Types

#24

List Simple Types - Inlining Types

#25

Union Simple Types

#26

Documentation

#27

Documenting an Element

#28

Documenting a Type

#29

Documenting an Attribute

#30

Fully Document Your Schemata

#31

PSVI

#32

PSVI Element Annotations

#33

PSVI Attribute Annotations

#34

Schema Components

#35

Schema Information Component

#36

Element Declaration Component

#37

Complex Type Definition Component