Re: [xsl] catch MathML

Subject: Re: [xsl] catch MathML
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 20 Feb 2004 22:41:37 GMT
> in my dtd im referencing MathML by
excellent taste!, everyone's dtd ought to do this:-)

> the very silly question i have is why isn't
That's not silly at all, you are in very good company, the question gets
asked a lot (I'm sure an answer will be in the faq, somwehere)

MathML is in the namespace (the
oldest namespace allocated by W3C, except for the namespace defined in
the namespace rec:-) this namespace is defaulted by the DTD so even if
you have not got an explicit namespace declaration, all the mathml
elements will be in this namespace.

unprefixed element names in Xpath always mean elements in no-namespace
so in your stylesheet go
then use m:math this will match your math element (even though the
element in the document isn't prefixed)

Please don't use the dtd


That was corrected by errata to MathML 2, and replaced altogether in
MathML 2 2nd edition, the correct dtd is
see the notes at

Unfortunately the W3C rules on publishing in TR area mean it's not
possible to change any files after they are published which is
reasonable for documents but bad for machine readable files like DTD,
which is why in the 2nd edition of MathML makes the normative DTD in the
/Math area rather than in /TR.

Co Editor of MathML2 when I'm not chatting on this list


 XSL-List info and archive:

Current Thread