W3C home > Mailing lists > Public > xmlschema-dev@w3.org > October 2001

RE: trouble with "What's in the target Namespace?"

From: <Noah_Mendelsohn@lotus.com>
Date: Fri, 19 Oct 2001 10:08:57 -0400
To: <priscilla@walmsley.com>
Cc: donalds@isogen.com, "'Schema Dev \(E-mail\)'" <xmlschema-dev@w3.org>
Message-ID: <OFE5B4E823.27CF76C2-ON85256AEA.004E270E@lotus.com>
To expand a bit on Priscilla's excellent answer, the classic response 
would be:  "what's the namespace for the attribute "A" in the following:

<ns:e a="1" xmlns:ns="...someURI..."/>   ?"

So now ask, what namespace is locally declared, unqualified element a in:

<ns:e  xmlns:ns="...someURI...">

The analogy isn't perfect, but it's close.  The Namespaces rec doesn't say 
that the attribute is "in" namespace e.  From the point of view of the 
Namespaces rec, element "a" is, as Priscilla says, clearly not in a 
namespace.  However, if you're looking for the sense in which both 
attribute "a" ane element "a" are aspects of their ns qualified parent, 
they are (intentionally) somewhat analagous.  This has been oft-discussed 
and remains controversial as a design choice in schemas.

Noah Mendelsohn                                    Voice: 1-617-693-4036
Lotus Development Corp.                            Fax: 1-617-693-8676
One Rogers Street
Cambridge, MA 02142
Received on Friday, 19 October 2001 10:18:22 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:14:54 UTC