jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Moseley <...@osafoundation.org>
Subject Re: encoding jcr names
Date Thu, 19 May 2005 08:04:03 GMT
Tobias Strasser wrote:
> imo, the single quote could be allowed in names by the spec. but the
> general question remains: how to escape illegal jcr name characters?
> 
> the _x0000_ method mentioned above only applies for escaping non-valid
> xml characters in names when exporting to xml. if using the same
> mechanism here would probably confuse the situation.
> 
> i suggest to perform a url encoding of the non-valid characters. namely:
> 
> nonspace ::= (* Any Unicode character except: 
>                 '/', ':', '[', ']', '*', 
>                 ''', '"', '|' or any whitespace
>                 character *)
> 
> this escaping would also be a good candidate to go into the commons-jcr library.
> comments?

seems reasonable to me.

i can take a stab at this in the simple webdav server if none of you 
folks are motivated to work on it. let me know if i should.

thanks!

Mime
View raw message