23.2.2 schemaLibrary

23.2.2 schemaLibrary

This element specifies the set of XML namespaces which have been associated with the contents of the custom XML markup within the current Office Open XML document. Each unique namespace which is referenced within the document can be referenced within this element by a single schema element, regardless of the number of constituent XML schemas which comprise that namespace.

[Example: Consider a WordprocessingML document which contains custom XML markup in two distinct namespaces: the http://www.example.com namespace and the http://www.example2.com namespace. If the first namespace is defined by a single XML schema, and the second is defined by five XML schemas (which are cross-referenced using the appropriate XML Schema syntax), the following content would be displayed in the document’s schema library XML:

<sl:schemaLibrary>
  <sl:schema  />
  <sl:schema  />
</sl:schemaLibrary>

The schemaLibrary element contains only two schema elements even though there are six XML schemas in use, as there are only two distinct namespaces for which data is stored. end example]

[Note: The W3C XML Schema definition of this element’s content model (CT_SchemaLibrary) is located in A.7. end note]

Last updated on