W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2000

Re: Namespace treatment

From: <keshlam@us.ibm.com>
Date: Mon, 6 Mar 2000 10:45:13 -0500
cc: "www-dom@w3.org" <www-dom@w3.org>
Message-ID: <8525689A.005689DD.00@D51MTA03.pok.ibm.com>
>You have confused me here. If the URI is bound to the name, then there
>is no resolution necessary. Or did you mean the prefix?

The "name" is an attribute of the Node, and is made up of the namespace URI
and the localname. The binding of Node (and thus name) to namespace URI
occurs at the time the Node is created. It isn't expressed as a seperate
"name" object, but I think it's equivalent to what you're asking for. Since
object creation can be expensive in some environments, and names are
immutable, I don't think a separate name object would be an improvement.

> Until the namespace attributes are "normalized" the DOM is invalid.

The DOM doesn't currently check for validity; that's a Level 3 issue.  Did
you mean "not well formed"? Under the current design, the DOM doesn't
enforce all the XML well-formedness rules; that too is a Level 3 issue.

If your point is that validation currently interacts badly with namespaces,
I agree. But until schemas are released or someone redesigns DTD validation
to be namespace-aware, there isn't a lot we can do about that.

Joe Kesselman  / IBM Research
Received on Monday, 6 March 2000 10:46:03 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:06 UTC