- From: David Carlisle <davidc@nag.co.uk>
- Date: Fri, 1 Sep 2006 12:08:36 +0100
- To: K.Balamuraly2@spi-bpo.com
- Cc: www-math@w3.org
There was no need to send the stylesheets, we have those already! Your document is not namespace well formed, you have used the prefix mml: but have not included a declaration of this namespace to be mathml there should be xmlns:mml="http://www.w3.org/1999/Math/MathML" at the top of the file. The xml-stylesheet PI requires a type attribute (best to use text/xsl at present even though that isn't the official mime type for xsl) The stylesheet is designed to work with an xhtml+mathml document, and in the case of IE requires such a document as it adds markup into the <head> element to enable mathml rendering. Your document starts with math rather than html. See the example the XSL home page http://www.w3.org/Math/XSL/csmall2.xml (view source to see the markup used) These days you may find it easier not to use the stylesheet at all but to arrange cross-browser mathml support by using the technique shown here http://www.dessci.com/en/products/mathplayer/author/creatingpages.htm#InteroperabilityConsiderations David <?xml version="1.0"?> <?xml-stylesheet href="mathml.xsl"?> <mml:math display='block'> <mml:mrow> <mml:mfrac> <mml:mrow> <mml:msup> <mml:mrow> <mml:mo>(</mml:mo><mml:mi>a</mml:mi><mml:mo>+</mml:mo><mml:mi>b</mml:mi><mml:mo>)</mml:mo> </mml:mrow> <mml:mn>2</mml:mn> </mml:msup> </mml:mrow> <mml:mrow> <mml:mi>a</mml:mi><mml:mi>s</mml:mi><mml:mi>a</mml:mi><mml:mi>s</mml:mi><mml:mi>a</mml:mi><mml:mi>s</mml:mi> </mml:mrow> </mml:mfrac> </mml:mrow> </mml:math>
Received on Friday, 1 September 2006 11:09:05 UTC