(Excerpt from "The MathML Handbook" by Pavi Sandhu)
The mfenced element surrounds its content with a pair of fences (such as brackets or parentheses) and automatically inserts a separator between each pair of arguments. It provides a compact way of expressing markup involving fences and separators.
Consider the following expression:
The same expression can also be represented more compactly by the following markup:
<mrow> <mi>f</mi> <mo>⁡</mo> <mfenced><mi>x</mi><mi>y</mi></mfenced> </mrow>
The characters used as the opening and closing fence are determined by the value of the attributes, open and close. The default values of these attributes are the opening and closing parentheses. The attribute separators determine the character used as the separator. This can be specified as a sequence of zero or more characters. If there are too many separators, the extra ones are ignored. If there are too few separators, the last one is repeated as many times as required.
Here are two more examples that show the use of these attributes:
(a + b + c)
<mfenced separator="+"> <mi>a</mi> <mi>b</mi> <mi>c</mi> </mfenced>
<mfenced open="["> <mn>0</mn> <mn>1</mn> </mfenced>
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