Re: Showstopper issue with new Attribute text
Elliotte Rusty Harold <[email protected]> Thu, 11 Mar 2004 10:12:24 -0500
| Newsgroups | gmane.text.xml.sax.devel |
|---|---|
| Message-ID | <p06010200bc7630593567@[192.168.254.4]> |
At 9:54 AM -0500 3/11/04, Michael Glavassevich wrote: 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/." Oh crap. Does anything in the namespaces spec say this, or do we have another discontinuity between the specs? OK, I see it in the 1.1 spec: The prefix xmlns is used only to declare namespace bindings and is by definition bound to the namespace name http://www.w3.org/2000/xmlns/. It MUST NOT be declared or undeclared. Other prefixes MUST NOT be bound to this namespace name. Yuck. This is simply horrible, but it is there. Regardless, the prefix property of the namespace information item is *not* the same as the name property for the xmlns attribute. And an xmlns attribute information item is not the same as the namespace information item. The former comes from namespaces declared. The latter from namespaces in scope. The local name property of the attribute information item for an xmlns attribute is xmlns. The prefix property for the attribute information corresponding to an xmlns attribute has no value. Therefore, when SAX reports these I maintain that the local name should be xmlns, not the empty string. The qualified name should also be xmlns. This is still a showstopper issue, even allowing xmlns attributes into the http://www.w3.org/2000/xmlns/ namespace. -- Elliotte Rusty Harold [email protected] Effective XML (Addison-Wesley, 2003) http://www.cafeconleche.org/books/effectivexml http://www.amazon.com/exec/obidos/ISBN%3D0321150406/ref%3Dnosim/cafeaulaitA ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ List: sax-devel, [email protected] See: http://www.saxproject.org/ https://lists.sourceforge.net/lists/listinfo/sax-devel