Paul Sandoz <[EMAIL PROTECTED]> writes:
>
> I have spotted a problem with using the '-'
> character. The nsIRDFServer.getResource method
> implemented by nsRDFService.cpp:
>
> http://lxr.mozilla.org/seamonkey/source/rdf/base/src/nsRDFService.cpp#642
>
> does not allow for this character:
>
> 669 // Compute the scheme of the URI. Scan forward until we either:
> 670 //
> 671 // 1. Reach the end of the string
> 672 // 2. Encounter a non-alpha character
> 673 // 3. Encouter a colon.
> 674 //
> 675 // If we encounter a colon _before_ encountering a non-alpha
> 676 // character, then assume it's the scheme.
> 677 //
> 678 // XXX Although it's really not correct, we'll allow underscore
> 679 // characters ('_'), too.
>
> Hence it is not possible to use a scheme containing
> '-' for an RDF data resource.
>
> So we change the implementation or use the '_'
> character instead.
>
> Shall i update the bug with this info?
I just filed bugzilla 74448 on this, because RFC 2396 explicitly
permits the hyphen character in URI scheme names. We should just fix
nsRDFService.
Dan
--