473,385 Members | 1,973 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,385 software developers and data experts.

xmlns query for mathml

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 validating mode both complain that math
doesn't have an xmlns attribute. If I leave out the attribute, then
the Mathml stylesheet doesn't format the Mathml content using either
xalan or saxon.

Is the Mathml dtd wrong, or is there something else I should be doing?
Jul 20 '05 #1
2 1699
I'm trying to use the MathML DTD


The MathML DTD declares xmlns as an attribute so you presumably have a
very old copy. MathML1 predates the XML Namespace Rec so not surprisingly
the very early versions did not declare xmlns.

the current DTD is (always) available from

http://www.w3.org/Math/DTD

in particular

http://www.w3.org/Math/DTD/mathml2/mathml2.dtd

David

Jul 20 '05 #2
David Carlisle <da****@nag.co.uk> wrote in message news:<yg*************@penguin.nag.co.uk>...
I'm trying to use the MathML DTD


The MathML DTD declares xmlns as an attribute so you presumably have a
very old copy. MathML1 predates the XML Namespace Rec so not surprisingly
the very early versions did not declare xmlns.

the current DTD is (always) available from

http://www.w3.org/Math/DTD

in particular

http://www.w3.org/Math/DTD/mathml2/mathml2.dtd


Thanks, that works great, although I notice the "standalone" dtd isn't
very standalone. However, the tgz file does the job fine. I'm also
having a little trouble with the corresponding stylesheet (which I got
from http://www.w3.org/Math//XSL). I have a fragment such as

<math
xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<munderover>
<mo>&product;</mo>
<mi>i=1</mi>
<mi>r</mi>
</munderover>
<mi>p</mi>
</mrow>
</math>

which I think should display a product (looking like a capital pi)
with i=1 underneath, r on top, and p to the right of it (used to be p
indexed by i, but I cut that out trying to simplify the problem). What
I actually get is the munderover part ok, but on a line on its own
with the p on the next line. The html that comes out of the stylesheet
is as below (I'm using pmathmlcss.xsl inside mathml.xsl, with output
method html). IE version 6 and Mozilla (from RH7.3) both display it
the same way, so I'm assuming the output markup must be wrong. Any
suggestions?

<span xmlns:h="http://www.w3.org/1999/xhtml"
xmlns:m="http://www.w3.org/1998/Math/MathML"
xmlns:doc="http://www.dcarlisle.demon.co.uk/xsldoc" xmlns:x="data:,x"
id="N0x807e340.0x83082a0" class="mrow"><span id="N0x807e340.0x83082d8"
class="mrow">
<table class="munderover">
<tr>
<td><span class="mi1">r</span></td>
</tr>
<tr>
<td><span id="N0x807e340.0x8308348" class="mo">&prod;</span></td>
</tr>
<tr>
<td><span class="mi">i=1</span></td>
</tr>
</table>
<span class="mi1">p</span></span></span>
Jul 20 '05 #3

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

Similar topics

1
by: Annoying | last post by:
Weird my previous posts didn't came through But here's my problem again. I need to use MAthML (a mathematical version of PHP) to save a bunch of formulae. This isn't a problem. But later on i...
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...
10
by: Saqib Ali | last post by:
Hello All, I am using Norman Walsh's XSLTs to transform some DocBook XML content to HTML. However I noticed that Norman Walsh's DocBook XSLT includes the following tag in the transformed...
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...
1
by: Stefan Behnel | last post by:
Hi! I was looking for an implementation of a parser/model/serializer for Content MathML in Python. Does anyone know about something useful? I need to work with math expressions...
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">...
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...
1
by: C.W.Holeman II | last post by:
I have an xmlns attribute that produces an XHTML validation error and I do not understand why it is considered an error.The file displays as expected on Firefox and IE7. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.