W3C home > Mailing lists > Public > www-math@w3.org > June 2003

Re: Implementing MathML on the web

From: David Carlisle <davidc@nag.co.uk>
Date: Tue, 3 Jun 2003 15:19:15 +0100
Message-Id: <200306031419.PAA04676@penguin.nag.co.uk>
To: aguest@nps.navy.mil
CC: www-math@w3.org


> Another problem is that entities aren't displayed in Netscape with the
> css preference, but they do work with Mathplayer.  I have the
> <!DOCTYPE ...> statement 

Entities are always expanded (or not) by the XML parser before the XSL
stylesheet starts so the stylesheet has no control over this.

Netscape/mozilla don't ever fetch the DTD you specify but if the
filename of the DTD specified in <DOCTYPE matches one in its standard
cache of DTDs then it will use its cached DTD. The example you quote
should work, but check your local 
$MOZILLAHOME/res/dtd
directory where $MOZILLAHOME is wherever Mozilla or netscape is
installed. You need to use a DTD name that matches one of the ones
installed locally. this is a restriction that mozilla/netscape places on
its xml parsing to avoid the time delays in downloading a large dtd.


> My goal is to have the math displayed without use of any plug-in such
> as MathPlayer.  It doesn't seem to be finding the ctop.xsl file,

Ah, unfortunately you are hitting the following bit of code in
mathml.xsl

<!-- not working, currently
<xsl:when test="system-property('xsl:vendor')='Microsoft' and /*/@fns:renderer='css'">
<xsl:variable name="pmml">
<xsl:apply-templates mode="c2p"/>
</xsl:variable>
<xsl:apply-templates select="msxsl:node-set($pmml)/node()"/>
</xsl:when>
-->

Note it's commented out. At some point while testing these stylesheets
one version of IE hung forever with that section uncommented, so I
removed it.

To be honest are you _sure_ that you want to do this? I wrote the
stylesheet that renders mathml just using css and javascript
at a point when there were no freely available behavior extensions
for IE and before mathml was in the default build of netscape.
Given that mathplayer is a rather small download, and free, and produces
much better rendering than my XSL/CSS stylesheet I had considered
dropping support for the pmathmlcss.xsl stylesheet altogether.
If people do need this functionality I suppose I should investigate
again whether the above test can be made to work.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
Received on Tuesday, 3 June 2003 10:19:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 20 February 2010 06:12:55 GMT