2. Make two identical copies of all your schemas, where the copies differ only in the value of elementFormDefault (in one copy set elementFormDefault="qualified", in the other copy set elementFormDefault="unqualified") more ...
3. Uniquely identify all schema components with the id attribute. Note: this is NOT the same thing as creating an element with an attribute with an ID-datatype. Rather, what is being referred to here is the capability to associate an id attribute with every schema component (types, elements, attributes, etc). Here are some examples:
This provides a finer level of granularity for identifying components than does namespaces, which provides only a course level of granularity. more ...4. Postpone decisions as long as possible. more ...
4.1 Postpone binding schema components to a namespace.
Corrollary: Don't give schema's a targetNamespace. Let schemas which <include> your no-namespace schema supply a targetNamespace, one that makes sense to the <include>ing schema more ...
4.2 Postpone binding a type reference to an implementation, i.e., use dangling types.
Corrollary: In an <import> element the schemaLocation attribute is optional. Don't use it. more ...
5. Create extensible schemas.
5.1 Recognize your limitations as a schema designer, i.e, be smart enough to know that you're not smart enough to anticipate all the varieties of data that an instance document author might need to use in creating an instance document.
Corrollary: use the <any> element. more ...
6. Recognize that with XML Schemas you will not be able to express all your business rules. Express those business rules using either XSLT or Schematron. more ...