Dans le cadre d'un projet, je dois produire du mathml.
Pour vérifier si le code produit était valide,
j'allais sur le site :
http://www.mathmlcentral.com
Pas trés pratique ...
Donc j'aurais voulu pouvoir utiliser un navigateur
pour faire le rendu de mon mathml et ainsi vérifier le résultat.
Aprés plusieurs essais, j'ai pris amaya (le navigateur W3C).
Ca marche bien ou presque ... Lorsque j'utilise des balises comme par exemple <apply>, <plus/>, ...,
comme dans ce fichier :
Code :
- <?xml version="1.0"?>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <body>
- <h1> Mon exemple sans apply </h1>
- <math xmlns="http://www.w3.org/1998/Math/MathML">
- <mfrac>
- <mrow>
- <msup>
- <mfenced>
- <mrow>
- <mi>a</mi>
- <mo>+</mo>
- <mi>b</mi>
- </mrow>
- </mfenced>
- <mn>2</mn>
- </msup>
- </mrow>
- <mn>2</mn>
- </mfrac>
- </math>
- <h1> Mon exemple avec apply</h1>
- <math xmlns="http://www.w3.org/1998/Math/MathML">
- <apply>
- <divide/>
- <apply>
- <power/>
- <apply>
- <plus/>
- <ci>a</ci>
- <ci>b</ci>
- </apply>
- <cn>2</cn>
- </apply>
- <cn>2</cn>
- </apply>
- </math>
- </body>
- </html>
|
j'ai un message d'erreur du genre:
*** Errors/warnings in "le fichier"
Warning: no encoding specified, assuming UTF-8
line 26, char 1: Invalid or unsupported MathML element <apply>
line 27, char 2: Invalid or unsupported MathML element <divide>
line 28, char 2: Invalid or unsupported MathML element <apply>
line 29, char 4: Invalid or unsupported MathML element <power>
line 30, char 4: Invalid or unsupported MathML element <apply>
line 31, char 6: Invalid or unsupported MathML element <plus>
line 32, char 6: Invalid or unsupported MathML element <ci>
line 33, char 6: Invalid or unsupported MathML element <ci>
line 35, char 4: Invalid or unsupported MathML element <cn>
line 37, char 2: Invalid or unsupported MathML element <cn>***
Si quelqu'un à une idée où la méthode pour utiliser ces balises, Merci