W3C home > Mailing lists > Public > public-html@w3.org > September 2009

Re: More on SVG within HTML pages

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Mon, 07 Sep 2009 23:26:31 +0200
Message-ID: <4AA57A87.6060002@lachy.id.au>
To: Jeff Schiller <codedread@gmail.com>
Cc: HTML WG <public-html@w3.org>
Jeff Schiller wrote:
> Maciej wrote:
>> (46 errors, specifically about the use of attributes from foreign
>> namespaces in a way that is not allowed by SVG 1.1 itself.)
>
> Am I misunderstanding something?  Actually that use of namespaced
> attributes and elements is perfectly valid from what I can see.

According to the SVG spec, yes, any namespaced attributes or elements 
can be used anywhere.

http://www.w3.org/TR/SVG/extend.html

> "Attribute "sodipodi:version" is not a valid attribute"
>
> Why?  The sodipodi namespace and prefix have been declared on the root element?
>
> Is this just a bug in the valdiator?

I suspect the reason for the discrepency is because the W3C validator 
uses DTD based validation, which has inherent limitations in it's 
ability to express conformance requirements when namespaces and prefixes 
are involved.  i.e. There's no way to express in a DTD that any element 
or attribute with any unknown prefix in any namespace is allowed.

-- 
Lachlan Hunt - Opera Software
http://lachy.id.au/
http://www.opera.com/
Received on Monday, 7 September 2009 21:27:12 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:07 UTC