[xhtml]

Schema Best Practices and Packaging Schema Libraries

R. Alexander Milowski

milowski at sims.berkeley.edu

#1

Best Practices

#2

Simple Things First

#3

Namespace URI

#4

The "Dark Side" is swaying me...

#5

Public Identifiers

#6

Example Public Identifiers

#7

Where to go for More

#8

Structuring a Namespace URI

#9

Versioning & Instances

#10

Organizing Your Schema Documents

#11

A Simple Recomendation

#12

Yours vs. Theirs

#13

Handling Imports

#14

General Strategy for Re-usable Schemata

#15

Naming

#16

Naming Elements

#17

Naming Types

#18

What to Make Global

#19

What to make Global

#20

Global Elements

#21

Qualified vs Unqualified

#22

How Many Namespaces?

#23

Documenting your Schemata

#24

Documenting Element Declarations or Complex Type Definitions

#25

Rules for Documentation

  1. Document the schema so that everyone knows the purpose and scope of your schema.

  2. Document all the global components of your schema.

  3. Document your includes, imports, and redefines so the next schema author knows why they are there.

  4. Document local type definitions as they aren't going to be documented elsewhere.

  5. Any enumeration or options should be document so a user can choose between them.

  6. When there is any doubt, add some kind of documentation.

  7. Document your assumptions. Keep in mind that the schema definitions and declarations are not enough. You might think a name is obvious but they might have different definitions in different contexts.

#26

What Goes in a Release

#27

Structuring for Release