1.11.1 Traduction Mathml d’une expression : mathml
mathml a comme argument une expression.
mathml renvoie l’écriture en mathml de l’expression évaluée.
On tape :
mathml(1/2)
On obtient :
"<?xml version=""1.0"" encoding=""iso-8859-1""?>
<!DOCTYPE html PUBLIC ""-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN""
""http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd"" [
<!ENTITY mathml ""http://www.w3.org/1998/Math/MathML"">
]>
<html xmlns=""http://www.w3.org/1999/xhtml"">
<body>
<math mode=""display"" xmlns=""http://www.w3.org/1998/Math/MathML"">
<mfrac><mrow><mn>1</mn></mrow><mrow><mn>2</mn></mrow></mfrac>
</math><br/>
</body>
</html>
"