Inspired by this post, I tried to convert the MathML example, which looks like this:
<math>
<mrow>
<mfrac>
<mrow><mi>x</mi></mrow>
<mrow><mi>y</mi></mrow>
</mfrac>
</mrow>
</math>
to Latex using xsltproc
. First I downloaded the XSLT files from here. Now, for those of use who don't speak MathML, the above example is a fraction: 1/2
After I've unzipped the xslt file and I created the MathML file (input.mml) I have the following files:
$ ls
README cmarkup.xsl entities.xsl glayout.xsl input.mml mmltex.xsl scripts.xsl tables.xsl tokens.xsl
So, when I do
$> xsltproc mmltex.xsl input.mml
x
y
Which is not correct, its not a Latex fraction. Any suggestions what I might be doing wrong here ?