W3C home > Mailing lists > Public > www-svg@w3.org > January 2011

Re: A redundant namespace name in an SVG text.

From: Dr. Olaf Hoffmann <Dr.O.Hoffmann@gmx.de>
Date: Sat, 22 Jan 2011 14:01:17 +0100
To: www-svg@w3.org, peasthope@shaw.ca
Message-Id: <201101221401.18326.Dr.O.Hoffmann@gmx.de>

I think, the prefix contruction with always 
having <svg:element-name> in 
XHTML 1.1 plus MathML 2.0 plus SVG 1.1
is mainly a problem due to limitations of writing
DTDs and capabilities of validators to validate
a document with content from several namespaces.
The validator uses only the DTD and is not
necessarily looking on the xmlns attributes and using
some internal DTD like construct for every fragment
from another namespace.

If you put the xmlns attribute with the value
for SVG in each topmost svg element of an SVG fragment
and the value for XHTML in each topmost XHTML
element of an XHTML fragment and the value for MathML in each 
topmost MathML element of a MathML fragment, this is ok as
If not indicated otherwise in an element or with a prefix, 
all children will belong to the same namespace as the parent 
with the xmlns attribute. 
Typically just a validator (for example that 
from W3C)  cannot validate it anymore - if you need
validation against the given DTD with such a validator,
you have to use the prefixes as noted in the DTD...

Received on Saturday, 22 January 2011 13:01:53 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:23 UTC