jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexandru Popescu" <the.mindstorm.mailingl...@gmail.com>
Subject Re: Node names
Date Mon, 16 Oct 2006 15:31:44 GMT
It looks it was too Monday morning when posting about this one, as the
2nd part is wrong.

On 10/16/06, Alexandru Popescu <the.mindstorm.mailinglist@gmail.com> wrote:
> Hi!
>
> I am a bit confused by the specification for the node names. According
> to the spec (page 26-27), a node name can be:
>
> name ::= simplename | prefixedname
>
> simplename ::= onecharsimplename |
>                         twocharsimplename |
>                         threeormorecharname
>
> and then:
>
> onecharsimplename ::= (* Any Unicode character except: '.', '/', ':',
> '[', ']', '*', ''', '"', '|' or any  whitespace character *)
>
> twocharsimplename ::= '.' onecharsimplename |
>                                       onecharsimplename '.' |
>                                       onecharsimplename onecharsimplename
>
>
> According to the above it looks like I can have node names like:
> .metadata or metadata. And according to the threeormorecharname I can
> also have metadata.metadata. Is this correct?
>

This is correct.

> Also, by reading the definition of threeormorecharname it looks like I
> can have node names with only spaces. Is this really possible?
>

No, this is not possible. According to the definition:

threeormorecharname ::= nonspace string nonspace.

./alex
--
.w( the_mindstorm )p.

PS: thanks Jukka for the wake up call :-)

> thanks in advance,
>
> ./alex
> --
> .w( the_mindstorm )p.
>

Mime
View raw message