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

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...">
        <a>1</a>
</ns:e>

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