math:math|math:mrow|math:merror|math:mphantom|math:menclose|math:mstyle (in draw mode) — Drawing a box.

<xsl:template match="math:math|math:mrow|math:merror|math:mphantom|math:menclose|math:mstyle" mode="draw"> <xsl:param name="xShift"/> <xsl:param name="yShift"/> ... </xsl:template>

All the children of a row are grouped in a SVG
`g`

tag that represents a group of elements on the
canvas. The style attribute is set on this tag to determine the default style of the box. After writing this tag, the drawing mode
template of each child is called in order to draw them, except if the element is a `mphantom`

. The children
of a `mphantom`

element are never drawn. These children are shifted on the y-axis if necessary (attribute
`SHIFT`

).

If the element is an `merror`

element, a box is drawn around child elements using the
SVG
`rect`

tag that draws a rectangle.

If the element is an `menclose`

element, the `drawEnclose`

template is called to
write decoration around child elements. This template takes five parameters: `X`

and `Y`

coordinates, `WIDTH`

and `HEIGHT`

of the row and `NOTATION`

attribute
that is transformed into a sequence to handle multiple notation.