Re: Showstopper issue with new Attribute text
Michael Glavassevich <[email protected]> Thu, 11 Mar 2004 09:54:30 -0500
| Newsgroups | gmane.text.xml.sax.devel |
|---|---|
| Message-ID | <OF24BFF179.96E54E23-ON85256E54.0050C5B0-85256E54.0051D5E1@ca.ibm.com> |
[email protected] 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: [email protected] E-mail: [email protected]