Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 21691 invoked from network); 27 Oct 2008 09:25:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Oct 2008 09:25:23 -0000 Received: (qmail 88439 invoked by uid 500); 27 Oct 2008 09:25:25 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 88427 invoked by uid 500); 27 Oct 2008 09:25:25 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 88416 invoked by uid 99); 27 Oct 2008 09:25:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Oct 2008 02:25:25 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Oct 2008 09:24:12 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1KuOLD-00074a-6Q for users@jackrabbit.apache.org; Mon, 27 Oct 2008 02:24:51 -0700 Message-ID: <20184217.post@talk.nabble.com> Date: Mon, 27 Oct 2008 02:24:51 -0700 (PDT) From: iapilgrim To: users@jackrabbit.apache.org Subject: jcr:deref usage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: iapilgrim@gmail.com X-Virus-Checked: Checked by ClamAV on apache.org I want to use jcr:deref. In JSR spec, For example, suppose there is a property of type REFERENCE called myapp:author which refers to a node representing the author of this document. A query expression to find the person=E2=80=99s last name propert= y would be: /jcr:root/myapp:myDoc/ jcr:deref(@myapp:author, 'myapp:person')/address The dereference expression above evaluates to one or more nodes which has the name myapp:person. Subsequently a child node of each, representing the person=E2=80=99s address, is selected. My questions: + I don't see where to query person's last name? + It is not clear what will be return Doc or User? + Do I need to have strong reference ( oppose to weak reference that is referred by path) In my application: my entry have a property "author" that refer to a user node (similar to spe= c example) but when query like this //blogsystem/posts/entry_2/jcr:deref(@author,'*') =20 --> no error and no results and one more question: Which JR version support predicate with jcr:deref? I have searched the mailling list but found no answers so I need your help Thanks and regards, Van --=20 View this message in context: http://www.nabble.com/jcr%3Aderef-usage-tp201= 84217p20184217.html Sent from the Jackrabbit - Users mailing list archive at Nabble.com.