[Table of Contents] [docx version]

SpreadsheetML Reference Material - Table of Contents

MapInfo (XML Mapping)

This element acts as the container for all of the XML schemas and maps attached to the SpreadsheetML document.

Parent Elements

Root element of SpreadsheetML Custom XML Mappings part

 

Child Elements

Subclause

Map (XML Mapping Properties)

§3.16.2

Schema (XML Schema)

§3.16.4

 

Attributes

Description

SelectionNamespaces (Prefix Mappings for XPath Expressions)

Specifies namespaces for use in XPath expressions when it is necessary to define new namespaces externally. Namespaces are defined in the XML style, as a space-separated list of namespace declaration attributes

 

[Example: The following example contains elements that belong to "a" and "b", in addition to elements that do not belong to any namespace.

 

<?xml version="1.0"?>
<root>
<branch>branch</branch>
<a:root xmlns:a="http://myserver.com">
<a:branch>a-branch</a:branch>
<b:branch xmlns:b="http://yourserver.com">
b-branch</b:branch>
</a:root>
</root>

end example]

 

Note: This is used when writing Xpath expressions at runtime against the XML instance structures, because the Xpath expressions use namespace prefixes instead of the fully spelled out namespace.

 

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_MapInfo">

   <sequence>

   <element name="Schema" type="CT_Schema" minOccurs="1" maxOccurs="unbounded"/>

   <element name="Map" type="CT_Map" minOccurs="1" maxOccurs="unbounded"/>

   </sequence>

   <attribute name="SelectionNamespaces" type="xsd:string" use="required"/>

</complexType>