According to the SAX documentation namespace attributes should have no namespace URI, and no local name: [[ [an xmlns:h attribute should return] an attribute with no Namespace URI (empty string), no local name (empty string), and the qName "xmlns:h" ]] See: http://sax.sourceforge.net/?selected=namespaces http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5059
This information is based on Namespaces in XML REC. However, the XML Information Set W3C REC specifies that namespace attributes should be bound to "http://www.w3.org/2000/xmlns/" : [[ [namespace attributes] An unordered set of attribute information items, one for each of the namespace declarations (specified or defaulted from the DTD) of this element. A declaration of the form xmlns="", which undeclares the default namespace, counts as a namespace declaration. 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/. If the element has no namespace declarations, this set has no members. ]] DOM Level 2 W3C REC also mention that [see 1.1.8. XML Namespaces]. In my opinion, SAX definition for namespace attributes is incorrect and needs a fix. Any comments? -- Elena Litani / IBM Toronto --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
