>But is there anything in the namespace spec that says that the URL for a
>namespace cannot be empty?

In the definition of "namespace prefix", it says "In such declarations, the
namespace name may not be empty."

The default namespace may be returned to the no-namespace case by using
xmlns="" ... but that's special-case syntax, and there is no intent that
that case actually have "" explicitly assigned as a namespace URI.

In the DOM, any node which is not assigned a namespace (which I think is
what Dean referred to as the global namespace) should use null rather than
the empty string or any other string as its namespaceURI. We don't
currently _prevent_ you from using "" -- but (a) the current rule in
Namespaces (after much debate) namespace names are supposed to be
well-formed absolute URIs, (b) the empty string doesn't match that rule,
and (c) as noted above there's no consistant way to serialize this, so it's
probably a bad state to put your DOM into. DOM Level 3 expects to add a
method that checks namespace-well-formedness, and an empty-string
namespaceURI will definitely cause that routine to object.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to