Using Namespaces in Schemas

Because XML Schemas are themselves XML documents, you can use namespaces within them to blend schemas. This capability is what makes XML Schema such an extensible technology—it is possible to extend a schema by incorporating the elements and attributes of another schema. XML Schema documents must support an open content model in order to take advantage of this capability. Fortunately, all XML Schema documents have an open content model by default.

Because constrained data types are not supported by Microsoft's implementation of XML Schema in Internet Explorer 5.0, namespaces in schemas are a perfect example of using this functionality. More specifically, it would be useful to have min and max attributes that could ...

Get XML Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.