So is it legal to do this:
<foo xmlns:bar="">
<bar:baz someattr="abc"/>
</foo>
If so, then there would be no way to know that baz was in a namespace,
because it would look exactly the same. I know its kind of contrived, but
given that it can probably easly happen, it would have just made a lot more
sense to have a URL for the global namespace. You can say there isn't a
global namespace, but in effect that's what it is. They all have the same
'lack of namespaceness' which makes them all a set that it would have been
good to be able to unambiguously identify.
Anyway, spilt milk under the bridge I guess.
--------------
Dean Roddey
Software Geek Extraordinaire
Portal, Inc
[EMAIL PROTECTED]
-----Original Message-----
From: David E. Cleary [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 02, 2001 10:38 AM
To: [EMAIL PROTECTED]
Subject: RE: Namespace problem in latest code
> But is there anything in the namespace spec that says that the URL for a
> namespace cannot be empty? I didn't see anything that said that, which is
> why I provided a real URL for the global namespace to map to. Personally I
> think that they should have provided one, since its not true that they
> aren't in any namespace. They are in the global namespace, which is a well
> defined namespace that's treated as a separate entity.
>From the namespace spec:
A default namespace is considered to apply to the element where it is
declared (if that element has no namespace prefix), and to all elements with
no prefix within the content of that element. If the URI reference in a
default namespace declaration is empty, then unprefixed elements in the
scope of the declaration are not considered to be in any namespace. Note
that default namespaces do not apply directly to attributes.
There is no such thing as a global namespace. Any elements and attributes
that are not in a namespace should have a URI of "" (the zero length
string).
David Cleary
Progress Software
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]