Andreas Hartmann wrote:
[EMAIL PROTECTED] wrote:
[...]
AbstractSAXTransformer cleanup: Make sure namespaceURI is not null
http://www.saxproject.org/?selected=namespaces
If I understand this correctly, a null URI should be used to denote elements without a namespace (I used to handle it like that).
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 :-/
Sylvain
[1] http://www.saxproject.org/apidoc/org/xml/sax/ContentHandler.html#startElement(java.lang.String,%20java.lang.String,%20java.lang.String,%20org.xml.sax.Attributes)
-- Sylvain Wallez Anyware Technologies http://www.apache.org/~sylvain http://www.anyware-tech.com { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }