W3C home > Mailing lists > Public > www-math@w3.org > September 2006

Re: [xsl] How to view MathML using pmath.xsl and ctop.xsl

From: David Carlisle <davidc@nag.co.uk>
Date: Fri, 1 Sep 2006 12:08:36 +0100
Message-Id: <200609011108.k81B8aVQ012980@edinburgh.nag.co.uk>
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
(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


<?xml version="1.0"?>
<?xml-stylesheet href="mathml.xsl"?>
<mml:math display='block'>
Received on Friday, 1 September 2006 11:09:05 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:27:38 UTC