Re: Issue on converting MathML to LaTeX using third party parser for XSLT2.0

The XSL file from Dr. Carlisle seems to be doing some advanced LaTeX. Using this XSL, how can I get, for example,  the output in the following form (quadratic formula) \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} of the input shown below:
Input:<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mrow>
    <mfrac>
      <mrow>
        <mo>&#x2212;</mo>
        <mi>b</mi>
        <mo>&#xB1;</mo>
        <msqrt>
          <mrow>
            <msup>
              <mi>b</mi>
              <mn>2</mn>
            </msup>
            <mo>&#x2212;</mo>
            <mn>4</mn>
            <mi>a</mi>
            <mi>c</mi>
          </mrow>
        </msqrt>
      </mrow>
      <mrow>
        <mn>2</mn>
        <mi>a</mi>
      </mrow>
    </mfrac>
  </mrow>
</math>
What I am getting now is the following output:
\[\let\par\empty
{
{\frac{{
\unicode{8722}
b
\unicode{177}
\sqrt{
{
{\msup{b}{{2}}}
\unicode{8722}
{4}
a
c
}
}
}}{{
{2}
a
}}}
}
\]
Thank..Saf
 

     On Tuesday, December 30, 2014 7:59 PM, saf sied <saf_itpro@yahoo.com> wrote:
   

  I am using a stylesheet from Dr. Carlisle mentioned here: http://tex.stackexchange.com/questions/85639/i-want-to-convert-mathml-to-latex
When I use the Saxon-HE 9.6, both the Java and .NET version of the Saxon give me the following output for the xml file shown below. The output does not look right - is it because of the version of Saxon I am using? Has anyone used Saxon-HE on the stylesheet mentioned above and got the correct LaTeX? Is there anything else I may be missing? I've latest versions of Java and .NET installed on my windows 8.1 machine.
Output:\[\let\par\empty
{\msup{a}{{2}}}
\]
Source:<?xml version="1.0"?>
<math xmlns="http://www.w3.org/1998/Math/MathML">
  <msup>
    <mi>a</mi>
    <mn>2</mn>
  </msup>
</math>


   

Received on Thursday, 1 January 2015 20:03:31 UTC