[jdom-interest] Possible bug in SAXHandler when "namespaces" feature is off

Dennis Sosnoski dms at sosnoski.com
Mon Jan 19 15:32:42 PST 2004


Elliotte Rusty Harold wrote:

>The Namespaces in XML Recommendation [XML Names] assigns a meaning to 
>names containing colon characters. Therefore, authors should not use 
>the colon in XML names except for namespace purposes, but XML 
>processors must accept the colon as a name character.
>
>  
>
Elliotte, I know you're well aware of the difference in meaning between 
"should" and "must" in a recommendation. For those who may not be, let 
me quote from the 1.2 Terminology section of the document:

"The terminology used to describe XML documents is defined in the body 
of this specification. The terms defined in the following list are used 
in building those definitions and in describing the actions of an XML 
processor: "

...

"must

[Definition: Conforming documents and XML processors are required to 
behave as described; otherwise they are in error. ]"

As it stands now JDOM violates the XML recommendation. I think that's 
fine, but JDOM should say that it supports XML+Namespaces rather than 
plain XML - which it demonstrably does not.

  - Dennis




More information about the jdom-interest mailing list