W3C home > Mailing lists > Public > www-validator@w3.org > November 2010

non-recognition of the svg namespace prefix

From: <peasthope@shaw.ca>
Date: Fri, 12 Nov 2010 09:03:40 -0700
Message-ID: <171056684.37096.30395@cantor.invalid>
To: www-validator@w3.org
Cc: peasthope@shaw.ca
Folk,

The following short text demonstrates my problem more clearly than the 
example cited a few weeks back.  Can anyone tell me why the validator 
asserts "Namespace prefix svg on desc is not defined"?  Recommendations 
for repair?
                    Thanks,           ... Peter E.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC
	"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
	"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd"
	[
	<!ENTITY SVGglobals "<svg:desc>Product diagrams</svg:desc>">
	]
>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

<head>
<title>Category 2</title>
<meta name="description" content="Category 2" />
</head>

<body>
<!-- This appears necessary to instantiate the SVGglobals. Is there a better way? -->
<svg:svg
	xmlns:svg="http://www.w3.org/2000/svg" 
	xmlns:xlink="http://www.w3.org/1999/xlink"
	version="1.1" 
	height="0"
>
	<svg:defs> &SVGglobals; </svg:defs>
</svg:svg>

</body>
</html>

-- 
Telephone 1 360 450 2132.  7785886232 is gone.
Shop pages http://carnot.yi.org/ accessible as long as the old drives survive.
Personal pages http://members.shaw.ca/peasthope/ .
Received on Friday, 12 November 2010 17:11:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:44 GMT