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

Error in REC-xml-names-19990114

From: Axel Dahmen <a.dahmen@infozoom.de>
Date: Tue, 28 Nov 2000 19:43:38 +0100
To: <xml-names-editor@w3.org>
Message-ID: <000001c0596e$c7b66d30$0cc0a8c0@axel>
Dear editors,

I'm not sure if I've learned from the recommendation correctly but if I did,
then the 2nd example in paragraph 5.3 is *not* legal:

  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" />

As <good> expands to <http://www.w3.org:good>, its unqualified attribute (a)
inherits the element's namespace 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
Received on Tuesday, 28 November 2000 14:10:14 UTC

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