|
Comments
Did you read today's front page stories & breaking news?
SYS-CON.TV
|
XML Protocols MathML
MathML
By: Ayesha Malik
Mar. 28, 2003 12:00 AM
MathML is a World Wide Web Consortium (W3C) standard that has been created so that mathematical expressions can be displayed, manipulated, and shared over the Web. According to the W3C, "The goal of MathML is to enable mathematics to be served, received, and processed on the World Wide Web, just as HTML has enabled this functionality for text." The MathML API can be found at the W3C Web site (www.w3.org). It has been designed as an XML application and provides two main sets of tags: one for the visual presentation of mathematics and the other for the content in equations. The W3C Math Working Group states that MathML should be created and edited using specialized tools and is not designed to be written primarily by hand, given the length and complexity of its API.
Benefits of MathML
Overview
Presentation Markup
Elements
1. Token elements: Token elements represent the most basic structures in mathematics. For example:
There are also a few presentation elements that are empty elements, and are used mostly in connection with alignment.
2. General layout: General layout elements describe the nature of the layout. For example:
3. Scripts and limits: Scripts and embellishments to symbols are common in mathematical notation. The elements in this section address this requirement. For example:
4. Tables: Matrices, arrays, and table-like mathematical notations are also represented using tags in MathML. For example:
5. Actions: The maction element is in a category by itself, and allows coding of various kinds of actions on notation, such as occur in an expression which toggles between two pieces of notation.
It is important to note that the order of elements is important in MathML. This is the only way that the MathML processor can understand the mathematical constructs. For example, the first child of an mfrac element is the numerator and the second child is the denominator.
Attributes
attribute: linethickness
Content Markup
Elements
1. Containers: Container elements are used to indicate the basic units of mathematical content such as mathematical identifiers, numbers, and symbols. For example:
2. Operators, qualifiers, and functions: These are tags used to define different mathematical and statistical functions and operators. For example:
3. Relations: Relations are characterized by the fact that, if an external application were to evaluate them, they would typically return a truth value. For example:
4. Conditions: The <condition> element is used to define the "such that" construct in mathematical expressions. The condition element is always used together with one or more bvar elements and the interpretation depends on the context.
5. Syntax and semantics: This class provides additional information required for mathematical processing. For example:
6. Constants and symbols: These are a collection of predefined constants and symbols which represent frequently encountered concepts. For example:
The <apply> element is perhaps the single most important content element. It is used to apply a function or operation to a collection of arguments. For example:
<mrow>
Attributes <cn type="real"> 12345.7 </cn>
Creating MathML Here we have the normal structure of an XHTML document. It begins with the start tag <html> embellished with an XML namespace declaration and language assertions. A head element contains a title as is customary. Then the <body> beginning also has a namespace declaration of an abbreviative prefix letter m to be used for the standard MathML namespace. Next comes a simple paragraph. Finally we get the math element which also has a namespace association declared. Inside the math element is MathML markup as we are beginning to be used to it. It is rendered in Amaya as shown in Figure 1 Amaya and Mathematica are two examples of editors that can be used for editing the content of MathML. The W3C MathML page also mentions a LaTeX to MathML converter known as WeM, which is a MathML editor that converts a subset LaTeX to MathML. It can be tested online and is also available for download (GPL, requires PHP). Several other available tools can also be found on the MathML Web site (www.w3.org/Math).
Summary Reader Feedback: Page 1 of 1
Your Feedback
Latest Cloud Developer Stories
Subscribe to the World's Most Powerful Newsletters
Subscribe to Our Rss Feeds & Get Your SYS-CON News Live!
|
SYS-CON Featured Whitepapers
Most Read This Week
Breaking Cloud Computing News
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||