Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 73573 invoked from network); 1 Sep 2009 13:12:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Sep 2009 13:12:25 -0000 Received: (qmail 5649 invoked by uid 500); 1 Sep 2009 13:12:24 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 5589 invoked by uid 500); 1 Sep 2009 13:12:24 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 5581 invoked by uid 99); 1 Sep 2009 13:12:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Sep 2009 13:12:24 +0000 X-ASF-Spam-Status: No, hits=4.7 required=10.0 tests=DNS_FROM_RFC_DSN,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [195.214.192.43] (HELO ffe1.ukr.net) (195.214.192.43) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Sep 2009 13:12:15 +0000 Received: from mail by ffe1.ukr.net with local ID 1MiT9N-000DkE-Em for dev@jackrabbit.apache.org; Tue, 01 Sep 2009 16:11:53 +0300 MIME-Version: 1.0 Content-Transfer-Encoding: binary Content-Type: multipart/alternative; boundary="_----------=_1251810713507179" Subject: Re: Re: Jackrabbit 2.0: LocalName grammar question. To: dev@jackrabbit.apache.org From: nikolaz@ukr.net X-Life: is great, enjoy it! X-Mailer: freemail.ukr.net mPOP 3.6.1-current X-Originating-Ip: [78.137.4.16] X-Browser: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.2) Gecko/20090803 Ubuntu/9.04 (jaunty) Shiretoko/3.5.2 Message-Id: Date: Tue, 01 Sep 2009 16:11:53 +0300 X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. --_----------=_1251810713507179 MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="windows-1251" >>��� 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 o'k! Let's jackrabit got path like "/{my:favorite}jackrabbit/mailing/" "my:favorite" is a valid uri and also "{my:favorite}jackrabbit" is a valid localName ("�3.2.2 Local Names"(JSR 283) chars like '{' or '}' are valid chars to use in LocalName). So this path segment may be parsed as: 1. qualifiedName, where prefix="" (empty prefix notation that should be written without ":") and localName="{my:favourite}jackrabbit" 2. expandedName, where uri="my:favourite" and localname="jackrabbit" How would it be parsed? Can I really use "{my:favorite}jackrabbit" as node name with empty prefix? --_----------=_1251810713507179 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/html; charset="windows-1251"
>>��� 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

o'k! Let's jackrabit got path like

"/{my:favorite}jackrabbit/mailing/"

"my:favorite" is a valid uri and also
"{my:favorite}jackrabbit" is a valid localName ("�3.2.2 Local Names"(JSR 283) chars like '{' or '}' are valid chars to use in LocalName).

So this path segment may be parsed as:

1. qualifiedName, where prefix="" (empty prefix notation that should be written without ":") and localName="{my:favourite}jackrabbit"
2. expandedName, where uri="my:favourite" and localname="jackrabbit"

How would it be parsed? Can I really use "{my:favorite}jackrabbit" as node name with empty prefix?

--_----------=_1251810713507179--