Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

3.8.2 Basic Format

The equationXml attribute’s content is a complete Word 2003 XML document (defined here: http://msdn.microsoft.com/en-us/library/aa272680(office.11).aspx) containing Office Open XML Math elements ("[ISO/IEC-29500-1] §22.1"), and properly escaped as needed to be stored within an attribute value.

This document is subject to the following restrictions:

This Word 2003 XML document must not contain any comments, headers, footers, endnotes, footnotes, or textboxes.

This Word 2003 XML document must contains a single paragraph (p element).

That p element must contain a single oMathPara element ("[ISO/IEC-29500-1] §22.1.2.78; oMathPara") which in turn must contain a single oMath element ("[ISO/IEC-29500-1] §22.1.2.77; oMath").

The oMathPara element can contain any valid XML from the Office Open XML Math namespace, but must not contain any markup from any other Office Open XML namespace. Instead, it can contain various elements from the Word 2003 XML namespace (§3.8.4, Office Open XML Math elements which can contain Word 2003 XML elements).

[Example: The following string value represents the encoded contents of the equationXml attribute when it contains a mathematic al expression containing only the character x:

<w:wordDocument xmlns:m= "http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml" ><w:body><w:p><m:oMathPara><m:oMath><m:r> <w:rPr><w:rFonts w:ascii="Cambria Math" w:h-ansi= "Cambria Math"/><w:i/></w:rPr><m:t>x</m:t ></m:r></m:oMath></m:oMathPara></w:p ></w:body></w:wordDocument>

end example]

The syntax and semantics of elements from Word 2003 XML and of Office Open XML Math are those specified in the corresponding file formats, with the following exceptions:

There is a specific list of elements from Word 2003 XML which are each allowed to contain a specific set of elements from Office Open XML Math (§3.8.3.1, Word 2003 XML elements which can contain Office Open XML Math elements).

Office Open XML Math elements are not allowed to contain any markup from any other Office Open XML namespace. Instead, a specific set of elements from Office Open XML Math are allowed to contain a specific set of elements from Word 2003 XML (§3.8.3, Reading the equationXml attribute).

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.