Forum How do I...?

Converting MathML

It doesn't seem as though naive use of Prince converts MathML to a good result in the pdf. A simple html file:

<?xml version="1.0" encoding="UTF-8"?>
<html >
<body><p>
<m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
<m:mfrac>
<m:mrow>
<m:mo>± </m:mo>
<m:mi>b </m:mi>
<m:msqrt>
<m:msup>
<m:mi>b </m:mi>
<m:mn>2 </m:mn>
</m:msup>
<m:mo>- </m:mo>
<m:mn>4 </m:mn>
<m:mi>a </m:mi>
<m:mi>c </m:mi>
</m:msqrt>
</m:mrow>
<m:mrow>
<m:mn>2 </m:mn>
<m:mi>a </m:mi>
</m:mrow>
</m:mfrac>
</m:math>
</p></body>
</html>

Running prince on that file, there's no formatting or graphics for the equation. What do I need to do to get it to work?
mikeday
HTML syntax does not support namespace prefixes like this, so you will either need to use XML syntax (by passing -i xml to Prince) or remove the prefix.
Oh, very cool that it's something so simple. Thank you!