Andreas Hartmann wrote:
Sylvain Wallez wrote:
Andreas Hartmann wrote:
[...]
Nono: what's explained here is that some parsers may not report the qName if their namespace-prefixes property is false. The ContentHandler.startElement() javadoc clearly states that the namespaceURI *is never null* !
Passing null namespace URIs is a well known source or crashes for Xalan :-/
Great, thanks for the info!
Does that mean that the empty string is not allowed as a namespace URI?
<foo:bar xmlns:foo=""/>
Aha, good question!
The namespace spec [1] states that the namespace URI "should have the characteristics of uniqueness and persistence". The empty string doesn't seem explicitely forbidden, but I'm not sure it has the required characteristics :-)
Sylvain
[1] http://www.w3.org/TR/REC-xml-names/#ns-decl
-- Sylvain Wallez Anyware Technologies http://www.apache.org/~sylvain http://www.anyware-tech.com { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }