You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Torgeir Veimo <to...@pobox.com> on 2007/01/26 09:43:19 UTC
nodes with : in name?
Is it possible to have nodes with : in the name using escaping? Eg
\: ? I can't seem to find any way to do it?
--
Torgeir Veimo
torgeir@pobox.com
Re: nodes with : in name?
Posted by David Nuescheler <da...@gmail.com>.
> > I would be interested in your usecase though since a ':' is a
> > reserved character
> > in just about everything that could think of that would be exposed
> > as a "name".
> This is data coming from our older legacy repository, which doesn't
> use namespaces. I'll just use %3A for now.
i see...
> For general use when eg importing existing filesystem data, I guess
> it would be appropriate to use URLEncode on filenames.
well, that's certainly a simple way to deal with it.
the only drawback is that you automatically encode characters that do not
need encoding. since i would not expect ':''s in (windows & mac)
filesystems the problem should not exist in a typical filesystem import.
regards,
david
Re: nodes with : in name?
Posted by Torgeir Veimo <to...@pobox.com>.
On 26 Jan 2007, at 08:53, David Nuescheler wrote:
>
> I would be interested in your usecase though since a ':' is a
> reserved character
> in just about everything that could think of that would be exposed
> as a "name".
This is data coming from our older legacy repository, which doesn't
use namespaces. I'll just use %3A for now.
For general use when eg importing existing filesystem data, I guess
it would be appropriate to use URLEncode on filenames.
--
Torgeir Veimo
torgeir@pobox.com
Re: nodes with : in name?
Posted by David Nuescheler <da...@gmail.com>.
Hi Togeir,
generally the ':' is reserved as the separator after the namespace-prefix,
but if your application for example wants to support something like a URL
escaping then you are free to use for example %3A as an escaping sequence.
I would recommend to stay away from a colon in node names.
I would be interested in your usecase though since a ':' is a reserved character
in just about everything that could think of that would be exposed as a "name".
regards,
david
On 1/26/07, Torgeir Veimo <to...@pobox.com> wrote:
> Is it possible to have nodes with : in the name using escaping? Eg
> \: ? I can't seem to find any way to do it?
> --
> Torgeir Veimo
> torgeir@pobox.com
>
>
>
>