473,396 Members | 1,859 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,396 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 1976


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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.