[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: SV: no targetNamespace, elementFormDefault qualified

From: <noah_mendelsohn@us.ibm.com>
Date: Mon, 3 Apr 2006 19:01:11 -0400
To: "Bryan Rasmussen" <BRS@itst.dk>
Cc: "Michael Kay" <mike@saxonica.com>, xmlschema-dev@w3.org, xmlschema-dev-request@w3.org
Message-ID: <OF0C4810C5.DD65572A-ON85257145.007DF242-85257145.007E73ED@lotus.com>
Re: SV: no targetNamespace

Bryan Rasmussen writes:

> Should there be an xmlns:blank="" perhaps to actively qualify 
> the non-namespace qualified elements?

Well, while this could perhaps have been done, the namespaces 1.1 
Recommendation is very clear on this point.  From [1]:

"The empty string, though it is a legal IRI reference, cannot be used as a 
namespace name."

furthermore:

"The use of relative IRI references, including same-document references, 
in namespace declarations is deprecated."

So, "" is by design not usable as a namespace name.  If "" were a 
namespace name, its use would be deprecated at very least because it would 
be a relative URI.  Furthermore, there's already a ton of software 
deployed that understands the above as doing something else. [2]:

"The attribute value in a namespace declaration for a prefix MAY be empty. 
This has the effect, within the scope of the declaration, of removing any 
association of the prefix with a namespace name."

If the above syntax were used, then we'd need another way to unbind a 
namespace declaration. [2] 

For all those reasons, my personal opinion is that this isn't going to 
happen. 

Noah

[1] http://www.w3.org/TR/xml-names11/#iri-use
[2] http://www.w3.org/TR/xml-names11/#scoping

--------------------------------------
Noah Mendelsohn 
IBM Corporation
One Rogers Street
Cambridge, MA 02142
1-617-693-4036
--------------------------------------
Received on Monday, 3 April 2006 23:01:24 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.