The formulas are there, if you open the docx with Word 2007. But i want to do a xsl-transformation with the document.xml inside the docx. The goal is to convert the nice looking word formulas into - less nice - expressions like y=(a-2x)/(3a^4-b). (My application is designed to convert any doc or docx file into a new docx file which is readable for blind persons and the software jaws. Therefore, all formulas have to be transformed in a linear form by my application.)
If you look at the document.xml you find tags like this one
<w:pict>
<v:shape id="_x0000_s1026" type="#_x0000_t75"
style="width:450pt;height:27pt" o:ole="" o:preferrelative="t"
filled="f" stroked="f">
<v:fill o:detectmouseclick="f"/>
<v:imagedata r:id="rId5" o:title=""/>
<o:lock v:ext="edit" aspectratio="t"/>
</v:shape>
</w:pict>
The data for the formula is inside a wmf-file called image5.wmf (rId5) which is not accessible to the xsl-transformation since it is no xml file.
I don’t see a way to get the formula data whithout converting the doc first in a rtf and then transforming it to docx.
Thanks for your help
emil