XML technologies / XML Schema / Controlling namespaces

(Excerpt from “XML Schema” by Eric van der Vlist)

The W3C published Namespaces in XML about a year after XML 1.0. Namespaces use URIs to distinguish XML vocabularies. Instead of updating XML 1.0 DTDs to support namespaces explicitly, the W3C chose to implement namespaces support in W3C XML Schema. The XML community eagerly awaited namespace support, so the editors of W3C XML Schema paid special attention to them.

Namespaces posed two problems for DTDs. One was recognizing namespaces defined with different prefixes in instance documents. The other was simplifying schema definitions spanning several namespaces. Open schemas controlling some namespaces strictly while allowing unknown elements and attributes from unknown namespaces proved especially difficult.

W3C XML Schema exceeded these expectations by associating a namespace with every schema-defined object: elements, attributes, simple and complex types, and element and attribute groups. Namespaces can thus build modular schema libraries.

   

   

 

 

 

back to top