473,226 Members | 1,311 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,226 software developers and data experts.

XML + XSL (Parser) + MathML

Hello!

i've got a Problem:

I'd like to build a website, which contains HTML and MathML, but it
should be readable for most of the site visitors.

I know about the ways mentioned at the bottom of this posting, but my
quations is:
Is there some way to parse the xsl file on the server to diplay the
expressions of MathML also in older Browsers?
Ways to display at the client (from Dessci.com):

//DOCTYPE

<!DOCTYPE html SYSTEM "..//xhtml-math11-f.dtd">

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"../DTD/xhtml1-strict.dtd">

<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
"http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd"
[<!ENTITY mathml http://www.w3.org/1998/Math/MathML"> ]>
//Namespaces

<html xmlns="http://www.w3.org/1999/xhtml">
...
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mi>x</mi><mo>+</mo><mn>2</mn>
</math>
...
</html>

<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:m="http://www.w3.org/1998/Math/MathML">
...
<m:math>
<m:mi>x</m:mi><m:mo>+</m:mo><m:mn>2</m:mn>
</m:math>
...
</html>
//OBJECT tag and Behavior PI

<OBJECT
ID="mathplayer"
CLASSID="clsid:32F66A20-7614-11D4-BD11-00104BD3F987">
</OBJECT>

<?IMPORT NAMESPACE="M" IMPLEMENTATION="#mathplayer" ?>
//Stylesheet PI

<?xml-stylesheet type="text/xsl" href="style/mathml.xsl"?>
Jul 20 '05 #1
2 1967


Florian Huber wrote:

I'd like to build a website, which contains HTML and MathML, but it
should be readable for most of the site visitors. Is there some way to parse the xsl file on the server to diplay the
expressions of MathML also in older Browsers?


Well, you can't simply convert complex MathML expression to HTML that
all browsers understand so while you can certainly run any XSL
transformation on the server that doesn't help you to get a browser to
be able to display complex mathematical equations, unless you generate
raster graphics.
--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #2
Florian Huber wrote:
Hello!

i've got a Problem:

I'd like to build a website, which contains HTML and MathML, but it
should be readable for most of the site visitors.

As someone else said, there is no good conversion til plain html (no
matter what you try it will look terrible).

My best guess is to try render it into images on the server side. If you
find some program (open source) that will do that, I'd be happy to hear
about it.

There are several web sites that demonstrate this (try Google for
MathMl), but I didn't find any nice open source project.

Soren
--
Fjern de 4 bogstaver i min mailadresse som er indsat for at hindre s...
Remove the 4 letter word meaning "junk mail" in my mail address.

Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Joachim Spoerhase | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, does anybody know a good WYSIWYG MathML Equation Editor for Linux? Many thanks in advance Joachim Spoerhase -----BEGIN PGP...
2
by: Jon Thackray | last post by:
I'm trying to use the MathML DTD and stylesheets, but get some problems with xmlns attributes. If I do something like <math xmlns="http://..."> .... </math> then xmllint and xalan in...
4
by: Jon Thackray | last post by:
I'm trying to build some mathml for a paper. I've got the mathml2 dtd, and the style sheets also from the canonical website http://www.w3.org/Math/. But I'm having some trouble. I've input the...
7
by: DKM | last post by:
I need an equivalent for the following: document.getElementById('equation').update(); from Mathplayer to use it in Mozilla based browser. When I change any text node, the page updates just...
3
by: Michel de Becdelièvre | last post by:
I have some *performance* trouble reading MathML files in my application (in ASP.Net). - I have small MathML files (2-3k) as input - as (almost) all MathML files these use entities. I have no...
3
by: dan_andrews | last post by:
<?xml version="1.0"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd" > <html xmlns="http://www.w3.org/1999/xhtml">...
3
by: BakedBean | last post by:
Hi, This is probably really simple, but I've only just been asked to look at this and I've spent a full day trying to get it to work, so any help will be very gratefully received! At present...
3
by: Fred | last post by:
I'm experimenting with MathML, and have run into difficulty. Given the simple XML: <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE component SYSTEM "mathml2.dtd"> <mathDisplay> <math> <msub>...
0
by: info | last post by:
I'd like to suggest a suite of MathML tools by Hermitech Laboratory, available at http://www.hermitech.ic.zt.ua. Software products of the greatest interest are: + free software for developers...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.