[jdom-interest] verfier.checkNamespaceURI()

Elliotte Rusty Harold elharo at metalab.unc.edu
Tue Jun 25 11:41:49 PDT 2002


At 10:52 AM -0700 6/25/02, Jason Hunter wrote:
>A patch would be Ok.  I think we shouldn't exclude "unwise" characters.
>
>Seems like "> 127" or "< 33" are bad ranges, as well as the chars < > ".
>

According to RFC 2396 <http://www.ietf.org/rfc/rfc2396.txt>:


Other characters are excluded because gateways and other transport 
agents are known to sometimes modify such characters, or they are 
used as delimiters.

unwise = "{" | "}" | "|" | "\" | "^" | "[" | "]" | "`"

Data corresponding to excluded characters must be escaped in order to 
be properly represented within a URI.

Note the "must". These are not merely deprecated. They are 
specifically forbidden.
-- 

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo at metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
|          XML in a  Nutshell, 2nd Edition (O'Reilly, 2002)          |
|              http://www.cafeconleche.org/books/xian2/              |
|  http://www.amazon.com/exec/obidos/ISBN%3D0596002920/cafeaulaitA/  |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://www.cafeaulait.org/      |
|  Read Cafe con Leche for XML News: http://www.cafeconleche.org/    |
+----------------------------------+---------------------------------+



More information about the jdom-interest mailing list