[jdom-interest] verfier.checkNamespaceURI()

Elliotte Rusty Harold elharo at metalab.unc.edu
Sun Jun 16 08:54:26 PDT 2002

I do not understand the logic behind the Verifier.checkNamespaceURI()
method's algorithm. In brief it checks that the first character is not a
number, dollar sign, or hyphen. It ignores all subsequent characters. I
don't see any such rules in either the namespaces or URI specs. 

The rules I see in the URI spec say that the following characters are
illegal anywhere in a URI reference, not just in the first character:

* Control characters 
* The space
* markup characters < > "
* Unwise characters: "{" | "}" | "|" | "\" | "^" | "[" | "]" | "`"
* All non-ASCII characters

Should I go ahead and write a patch that replaces the old algorithm with
one that looks for these characters? Or is there something I'm


More information about the jdom-interest mailing list