users@jaxb.java.net

Re: Namespace Question

From: Wiedmann, Jochen <jochen.wiedmann_at_softwareag.com>
Date: Sat, 08 Feb 2003 00:57:10 +0100

Hi,

> I think you are misunderstanding my point. The point is that you can't
> bind a prefix to the default namespace "".

I must admit that I am not so much keen with specification details.
However my impression is that I can. Perhaps you correct me? I am
referring to

  http://www.w3.org/TR/REC-xml-names/#dt-NSDecl

  [Definition:] If the attribute name matches DefaultAttName, then the
  namespace name in the attribute value is that of the default namespace
  in the scope of the element to which the declaration is attached.
  In such a default declaration, the attribute value may be empty.

In other words, if a default namespace is present, I can specify
something like

  <empty:foo xmlns:empty=""/>

Indicating that the element foo has an empty namespace URI?


Jochen