In match pattern you don't need to use "//" at the start of a pattern so doing
Code:
<xsl:template match="mspace"/>
<xsl:template match="annotation"/>
suffices. However both your match or my simplification will only work if you use XSLT 2.0 and put xpath-default-namespace="
http://www.w3.org/1998/Math/MathML" on the xsl: stylesheet element.
As for adding attributes, use e.g.
Code:
<xsl:template match="mo">
<xsl:copy>
<xsl:attribute name="font">XYZ</xsl:attribute>
<xsl:attribute name="fontsize">10.2</xsl:atttribute>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>