Re: [Sax-devel] Showstopper issue with new Attribute text
Brought to you by:
dmegginson
From: Michael G. <mrg...@ca...> - 2004-03-11 15:12:49
|
sax...@li... wrote on 03/10/2004 04:57:57 PM: > Consider this element: <name xmlns="http://www.example.com"/> > The proposed text says that this element's attribute has the local > name of an empty string and the qualified name xmlns. I don't buy it. > With or without namespaces, with or without Namespaces 1.1, the local > name of an attribute is never the empty string. the local name of > this attribute (if it's reported at all) is "xmlns", not "". > > Furthermore, I think in this element the xmlns attribute is no > namespace, according to the Namespace 1.1 recommendation. (I could be > wrong about that, but it's how I read the spec.) The infoset REC says that attributes named 'xmlns' have a namespace. For the [namespace attributes] property of element information items [1], it says: "By definition, all namespace attributes (including those named xmlns, whose [prefix] property has no value) have a namespace URI of http://www.w3.org/2000/xmlns/." [1] http://www.w3.org/TR/2004/REC-xml-infoset-20040204/#infoitem.element Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: mrg...@ca... E-mail: mrg...@ap... |