I have never used LyX for this, but I am intrigued by the ability to output MathML. I would love is to use LyX for editting Docbook 5 w/ MathML. My current solution is to use itex2MML on my Docbook files (editted in Emacs) before calling xsltproc. But this is kind of a hack.