W3C home > Mailing lists > Public > xml-names-editor@w3.org > November 2000

RE: Error in REC-xml-names-19990114

From: Andrew Layman <andrewl@microsoft.com>
Date: Tue, 28 Nov 2000 14:03:57 -0800
Message-ID: <C3729BBB6099B344834634EC67DE4AE1015076A8@red-msg-01.redmond.corp.microsoft.com>
To: "'Dan Connolly'" <connolly@w3.org>, Axel Dahmen <a.dahmen@infozoom.de>
Cc: xml-names-editor@w3.org, "Ronald Bourret (E-mail)" <rpbourret@rpbourret.com>
Thanks.  I second Dan's advice to look at the Myths page.  

-----Original Message-----
From: Dan Connolly [mailto:connolly@w3.org]
Sent: Tuesday, November 28, 2000 12:06 PM
To: Axel Dahmen
Cc: xml-names-editor@w3.org
Subject: Re: Error in REC-xml-names-19990114


Axel Dahmen wrote:
> 
> Dear editors,
> 
> I'm not sure if I've learned from the recommendation correctly

I think you have not... you're not alone; see

Myth #4: Unprefixed attribute names are in XML
                     namespaces
http://www.xml.com/pub/a/2000/03/08/namespaces/index.html?page=2

in
Mar. 8, 2000: Namespace Myths Exploded by Ronald Bourret 


> but if I did,
> then the 2nd example in paragraph 5.3 is *not* legal:
> 
> <QUOTE>
>   However, each of the following is legal, the second because the default
> namespace does not apply to attribute names:
> 
>     <!-- http://www.w3.org is bound to n1 and is the default -->
>     <x xmlns:n1="http://www.w3.org"
>           xmlns="http://www.w3.org" >
>       <good a="1"     b="2" />
>       <good a="1"     n1:a="2" />
>     </x>
> </QUOTE>
> 
> As <good> expands to <http://www.w3.org:good>,

yes, but...

> its unqualified attribute (a)
> inherits the element's namespace

nope.

> and expands to http://www.w3.org:a. Since
> "n1:" also expands to "http://www.w3.org", the attribute (n1:a) also
expands
> to http://www.w3.org:a which makes both attributes identical and thus the
> tag illegal.
> 
> Best regards,
> Axel Dahmen

-- 
Dan Connolly, W3C http://www.w3.org/People/Connolly/
Received on Tuesday, 28 November 2000 17:24:02 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:13:24 UTC