- From: <bugzilla@wiggum.w3.org>
- Date: Fri, 14 Mar 2008 13:12:16 +0000
- To: www-validator-cvs@w3.org
- CC:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=5570 ------- Comment #2 from pjmaip@yahoo.com 2008-03-14 13:12 ------- (In reply to comment #1) > The DTD used for this xhtml+mathml profile is rather limited, because it's not > really namespace aware. > > You may have more luck copying the example from the spec: > http://www.w3.org/TR/XHTMLplusMathMLplusSVG/sample.xhtml > Perfect example...and it shows the problem: <p>Math expression in display style:</p> <math xmlns="http://www.w3.org/1998/Math/MathML" display="block"> <mfrac> <mi>a</mi> <mn>2</mn> </mfrac> </math> <h2 id="svg">SVG sample</h2> <p> <svg:svg xmlns:svg="http://www.w3.org/2000/svg" width="10cm" height="8cm" viewBox="0 0 500 400" version="1.1"> <svg:title>A star</svg:title> <svg:polygon style="fill:red; stroke:blue; stroke-width:10" points="210,46 227,96 281,97 238,129 254,181 210,150 166,181 182,129 139,97 193,97"/> </svg:svg> </p> <h2 id="math_w_namespace">Math with namespace, same as above</h2> <p> <m:math xmlns:m="http://www.w3.org/1998/Math/MathML"> <m:mfrac> <m:mi>a</m:mi> <m:mn>2</m:mn> </m:mfrac> </m:math> </p> The first example with math works w/o a namespace prefix. The second example with svg works with namespace prefix. The last example with math does not work when using namespace prefix???
Received on Friday, 14 March 2008 13:12:48 UTC