W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2007

Re: Empty namespace

From: Boris Kolpackov <boris@codesynthesis.com>
Date: Fri, 31 Aug 2007 08:32:38 +0200
To: Rich Adili <Rich.Adili@xata.com>
Cc: xmlschema-dev@w3.org
Message-ID: <20070831063238.GA19756@karelia>

Hi Rich,

Rich Adili <Rich.Adili@xata.com> writes:

> <xs:schema xmlns=""...
>
> Is this legal? What are the implications of using an empty string?

Yes, this is legal. This construct "unbinds" the default namespace-
prefix association. It does not make much sense in the root element
of an XML document thought. But something like this makes perfect
sense:

<foo xmlns="foons"> <!-- now all unqualified elements are in foons -->
  <bar xmlns="">
    <baz/>  <!-- baz is not in a namespace -->
  </bar>
</foo>


Boris

-- 
Boris Kolpackov
Code Synthesis Tools CC
http://www.codesynthesis.com
Open-Source, Cross-Platform C++ XML Data Binding
Received on Friday, 31 August 2007 06:38:03 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:15:00 GMT