There seems to be a strange interaction between MathML and canonical ordering / Attribute settings. Sometimes I want to turn off the canonical reordering. I know I can do things like ClearAttributes, but the settings don't seem to carry over into MathMLForm. Even wrapping the expression in a Hold doesn't help. Is there no way to shut off this canonical form when generating MathML?? Thanks.
In[1]:= ClearAttributes[Plus, Orderless]
In[2]:= y+x
Out[2]= y + x
In[3]:= MathMLForm[y+x]
Out[3]//MathMLForm=
<mrow>
<mi>x</mi>
<mo>+</mo>
<mi>y</mi>
</mrow>
In[4]:= MathMLForm[Hold[y+x]]
Out[4]//MathMLForm= <math>
<mrow>
<mi>Hold</mi>
<mo>[</mo>
<mrow>
<mi>x</mi>
<mo>+</mo>
<mi>y</mi>
</mrow>
<mo>]</mo>
</mrow>
</math>
Since the web site evaluates the mathML, here is Out[3] without the math .../math brackets.
<mrow>
<mi>x</mi>
<mo>+</mo>
<mi>y</mi>
</mrow>