[Table of Contents] [docx version]
Custom XML Schema References - Table of Contents
schema (Custom XML Schema Reference)
This element specifies the properties associated with a single XML namespace, for which all known XML schemas shall be loaded in order to validate the custom XML markup stored within this document. These properties may be used appropriately to locate custom XML schema(s) for use with the document.
[Example: Consider a WordprocessingML document which contains custom XML markup in the http://www.contoso.com namespace. The following content would be displayed in the document's schema library data:
<w:schemaLibrary>
<w:schema w:uri="http://www.contoso.com" w:schemaLocation="c:\contoso.xsd" />
</w:schemaLibrary>
The schema element contains the properties for this one XML namespace: in this case, a namespace URI of http://www.contoso.com and a file location of c:\contoso.xsd. end example]
Parent Elements |
schemaLibrary (§8.2.2) |
Attributes |
Description |
manifestLocation (Resource File Location) |
Specifies the location of a resource file which should be downloaded and parsed when this document is loaded. The format and contents of this resource file are application-defined.
[Example: Consider a WordprocessingML document which contains custom XML markup in the http://www.contoso.com namespace, which is associated with a resource file located at http://www.contoso.com/resource.xml. The following content would be displayed in the document's schema library data:
<w:schemaLibrary>
The manifestLocation attribute contains http://www.contoso.com/manifest.xml which is the location of a resource file that may be downloaded for use when this namespace is used. end example]
The possible values for this attribute are defined by the XML Schema string datatype. |
schemaLocation (Custom XML Schema Location) |
Specifies the location of the XML schema file which should be downloaded and parsed when this document is loaded.
[Example: Consider a WordprocessingML document which contains custom XML markup in the http://www.contoso.com namespace, which is defined by an XML schema located at c:\contoso.xsd. The following content would be displayed in the document's schema library data:
<w:schemaLibrary>
The schemaLocation attribute contains c:\contoso.xsd which is the location of the XML schema file used when this namespace is used. end example]
The possible values for this attribute are defined by the XML Schema string datatype. |
uri (Custom XML Schema Namespace) |
Specifies the target namespace for the XML Schema associated with this schema reference.
[Example: Consider the following content for custom XML namespace data:
…
The uri attribute specifies the target namespace of each XML schema reference: • http://www.contoso.com/schema1 • http://www.contoso.com/schema2
Applications may then locate and utilize a schema for these namespaces using any means available. end example]
The possible values for this attribute are defined by the XML Schema string datatype. |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_Schema">
<attribute name="uri" type="xsd:string" default=""/>
<attribute name="manifestLocation" type="xsd:string"/>
<attribute name="schemaLocation" type="xsd:string"/>
</complexType>