Re: [xml-dev] Declaring the XML namespace (fwd)

james anderson scripsit:
From cowan  Fri Jul 12 05:01:02 2002
Return-Path: <xml-dev-return-10779-jcowan=reutershealth.com@lists.xml.org>
Received: from mail.reutershealth.com [204.243.9.36]
	by localhost with POP3 (fetchmail-5.7.4)
	for cowan@localhost (single-drop); Fri, 12 Jul 2002 05:01:02 -0400 (EDT)
Received: from mail.oasis-open.org ([209.202.168.102])
	by mail.reutershealth.com (Pro-8.9.3/Pro-8.9.3) with SMTP id EAA20892
	for <jcowan@reutershealth.com>; Fri, 12 Jul 2002 04:58:43 -0400 (EDT)
Received: (qmail 514 invoked by uid 60909); 12 Jul 2002 09:08:55 -0000
Mailing-List: contact xml-dev-help@lists.xml.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Post: <mailto:xml-dev@lists.xml.org>
List-Help: <mailto:xml-dev-help@lists.xml.org>
List-Unsubscribe: <mailto:xml-dev-unsubscribe@lists.xml.org>
List-Subscribe: <mailto:xml-dev-subscribe@lists.xml.org>
Delivered-To: mailing list xml-dev@lists.xml.org
Received: (qmail 506 invoked by uid 0); 12 Jul 2002 09:08:54 -0000
Message-ID: <3D2E9C3E.14972826@setf.de>
Date: Fri, 12 Jul 2002 11:08:49 +0200
From: james anderson <james.anderson@setf.de>
Reply-To: james.anderson@setf.de
Organization: nil
X-Mailer: Mozilla 4.75C-CCK-MCD {C-UDP; EBM-APPLE} (Macintosh; U; PPC)
X-Accept-Language: en
MIME-Version: 1.0
To: xml-dev@lists.xml.org
Cc: xml-names-editor@w3.org
References: <000701c228c6$b7696ad0$6401a8c0@pcukmka>
	 <3D2D95E9.3CD2228A@setf.de> <p04330103b9535469287c@[192.168.254.4]>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Subject: Re: [xml-dev] Declaring the XML namespace
X-UIDL: E7\"!0<l!!b=M!!,'P"!
X-Spam-Status: No, hits=0.0 required=5.0 tests= version=2.11



Elliotte Rusty Harold wrote:
> 
> At 4:28 PM +0200 7/11/02, james anderson wrote:
> 
> ...

> >
> >? (parse-document "<doc xmlns:xml='http://www.w3.org/XML/0000/namespace'/>")
> >#<DOC-NODE <no uri> #x8C88DFE>
> >9
> >?
> >
> 
> Incorrect. This is simply illegal in a namespace well-formed
> document. If cl-xml accepts that, then cl-xml is wrong and should be
> fixed.
> 
> >but i suppose opinions may differ.
> 
> They may indeed. However, some opinions are right and some are wrong. :-)

ok, how about an opinon on

<!DOCTYPE doc [
    <!ELEMENT doc EMPTY >
    <!ELEMENT tick ANY>
    <!ATTLIST tick xmlns:xml CDATA 'http://www.w3.org/XML/0000/namespace'>
    <!ELEMENT tock ANY>
    <!ATTLIST tock xmlns:xml CDATA ''>
    ]>

   <doc></doc>

or the equivalent in the more-namespace-aware document definition encodings?

> >Is there actually anything in the spec which precludes rebinding "xml"?
> >

> Yes. "The prefix xml is by definition bound to the namespace name 
> http://www.w3.org/XML/1998/namespace"; The words "by definition" 
> clearly indicate that documents can't change this. It does not say, 
> "The prefix xml is initially bound to the namespace name 
> http://www.w3.org/XML/1998/namespace";. Past discussions with the 
> authors of the Namespaces spec also clearly indicate that this was 
> [their] intent.

Noted. I had considered "unbound" and "immutable" to be orthogonal errors.
Perhaps this intent would be more clearly expressed if the respective passages
in 1.1, the topical NSC notwithstanding, were to read

   [Definition:] If the attribute name matches PrefixedAttName, then
   the NCName gives the namespace prefix, used to associate element
   and attribute names with the namespace name in the attribute value
   in the scope of the element to which the declaration is attached.
   In such declarations, the attribute value may be an empty string,
   the namespace prefix may not be "xmlns", and if the namespace
   prefix is "xml", then the namespace name must be
   http://www.w3.org/XML/1998/namespace.

and

  The prefix xml is by definition bound immutably to the namespace
  name http://www.w3.org/XML/1998/namespace. The prefix xmlns is
  used only for namespace bindings and may not itself be bound to
  any namespace name.

..

-----------------------------------------------------------------
The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
initiative of OASIS <http://www.oasis-open.org>

The list archives are at http://lists.xml.org/archives/xml-dev/

To subscribe or unsubscribe from this list use the subscription
manager: <http://lists.xml.org/ob/adm.pl>


-- 
John Cowan                                   jcowan@reutershealth.com
        "You need a change: try Canada"  "You need a change: try China"
                --fortune cookies opened by a couple that I know

Received on Saturday, 13 July 2002 12:26:20 UTC