jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julian Reschke <julian.resc...@gmx.de>
Subject Re: Jackrabbit 2.0: LocalName grammar question.
Date Mon, 31 Aug 2009 14:29:54 GMT
nikolaz@ukr.net wrote:
>   Good afternoon!
> We are interested in the grammar and restrictions of LocalNames. As for 
> "§3.2.2 Local Names" (JSR 283) chars like '{' or '}' are valid chars to 
> use in LocalName. Would "{my}NodeName" be a valid LocalName in your 
> Jackrabbit 2.0? If it does then how would it be parsed as expanded name 

Yes.

> (§3.2.5.1 Expanded form)?

The expanded form would be

   "{}{my}NodeName"

> Expanded form is defined as: ExpandedName ::= '{' Namespace '}' LocalName.
> 
> I mean would it be parsed as:
> namespace = ''
> localname = '{my}NodeName'
> or:
> namespace = 'my'
> localname = 'NodeName'
> ...

As "my" is not a syntactically legal namespace name, the parser would 
consider it part of a local name.

As far as I recall :-)

BR, Julian

Mime
View raw message