ExportString[NumberForm@5,"MathML","Semantics"->False]

*To*: mathgroup at smc.vnet.net*Subject*: [mg80536] ExportString[NumberForm@5,"MathML","Semantics"->False]*From*: "Chris Chiasson" <chris at chiasson.name>*Date*: Sun, 26 Aug 2007 02:50:13 -0400 (EDT)

The option in the command in the subject is being ignored. I wasn't going to report this because I have kinda been forced to distance myself from MathML in Mathematica, but I figured it was the right thing to do. Here is the output from the command: <math xmlns='http://www.w3.org/1998/Math/MathML'> <semantics> <semantics> <ms>5</ms> <annotation-xml encoding='MathML-Content'> <cn type='integer'>5</cn> </annotation-xml> </semantics> <annotation encoding='Mathematica'>TagBox[InterpretationBox["\"5\"", 5, Rule[Editable, False]], NumberForm]</annotation> </semantics> </math> P.S. The listing of options in the documentation for importing and exporting MathML is incomplete. Check Options@XML`MathML`ExpressionToMathML P.P.S. As mentioned in other bug reports, the <ms> tag is wrong. This is caused by a problem with MakeBoxes and NumberForm generating too many string quotations. Kinda like DisplayForm: (*has the extra string quotation problem (should be equivalent to 3rd example, but isn't)*) FullForm@ToBoxes@DisplayForm@"5" (*same problem here*) FullForm@ToBoxes@NumberForm@5 (*doesn't have the extra string quotation problem*) FullForm@ToBoxes@DisplayForm@RowBox@List@"5" Version 6.0.1 on Windows XP SP2 -- http://chris.chiasson.name/