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

Re (2): A redundant namespace name in an SVG text.

From: <peasthope@shaw.ca>
Date: Sun, 23 Jan 2011 14:06:50 -0700
Message-ID: <171056887.57778.49457@heaviside.invalid>
To: www-svg@w3.org, peasthope@shaw.ca
Cc: peasthope@shaw.ca
Hello Dr. Hoffmann,

From:	"Dr. Olaf Hoffmann" <Dr.O.Hoffmann@gmx.de>
Date:	Sat, 22 Jan 2011 14:01:17 +0100
> I think, the prefix contruction with always 
> having <svg:element-name> in 
> XHTML 1.1 plus MathML 2.0 plus SVG 1.1 ...
> 
> If you put the xmlns attribute with the value
> for SVG in each topmost svg element ...

OK, thanks.  I accept the need for unambiguous identification of a namespace.

Conversely, I am interested to use the namespace prefix where 
not necessary in a *.svg document.  In principle, this should 
work but gives an error message.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
	"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [ ] >

<svg 
	xmlns="http://www.w3.org/2000/svg" 
	xml:lang="en"
    width="134"
    height="242"
	overflow="visible" 
	style="font-family:Times; font-size:20">
	
	<svg:text x='40' y='-50' >1</svg:text> 
</svg>

If the two instances of "svg:" are removed, the above text validates.
Is there any simple way to make the above validate without removing 
the "svg:" prefixes?

Thanks for any ideas,                 ... Peter E.

-- 
Telephone 1 360 450 2132.
Shop pages http://carnot.yi.org/ accessible as long as the old drives survive.
Personal pages http://members.shaw.ca/peasthope/ .
Received on Sunday, 23 January 2011 22:07:07 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:47 GMT