Parallel markup

(Excerpt from "The MathML Handbook" by Pavi Sandhu)

In many cases, it is desirable to encode both the presentation and content markup for a mathematical expression. A MathML processing application can then use one type of markup or the other, depending on the context. For example, the presentation markup could be used for displaying the expression in a Web page while the content markup could be used for copying and pasting the expression into a computer algebra system for evaluation. This type of combined markup is called parallel markup because it contains multiple encodings of the same expression, in parallel branches of the main expression tree.

The mechanism used in MathML for providing multiple encodings of the same expression is the semantics element. The syntax of the semantics element was discussed under Semantic mapping elements. The first child of this element is a complete content markup or presentation markup expression. The second child can be an annotation-xml element that contains the same expression encoded in a different form. The form of the annotation is specified using the encoding attribute of the annotation-xml element. This attribute has the value MathML-Content for content markup and MathML-Presentation for presentation markup.

   

   

<< back next >>

 

 

 


 

Copyright © CHARLES RIVER MEDIA, INC., Massachusetts (USA) 2003
Printing of the online version is permitted exclusively for private use. Otherwise this chapter from the book "The MathML Handbook" is subject to the same provisions as those applicable for the hardcover edition: The work including all its components is protected by copyright. All rights reserved, including reproduction, translation, microfilming as well as storage and processing in electronic systems.


CHARLES RIVER MEDIA, INC., 20 Downer Avenue, Suite 3, Hingham, Massachusetts 02043, United States of America