Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 17251 invoked from network); 29 Jun 2007 10:01:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Jun 2007 10:01:19 -0000 Received: (qmail 9938 invoked by uid 500); 29 Jun 2007 10:01:21 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 9920 invoked by uid 500); 29 Jun 2007 10:01:21 -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 9911 invoked by uid 99); 29 Jun 2007 10:01:21 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jun 2007 03:01:21 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [195.154.103.130] (HELO condor.legisway.com) (195.154.103.130) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jun 2007 03:01:17 -0700 Received: from asterion.legisway.com ([10.0.0.46]) by condor.legisway.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 29 Jun 2007 12:14:17 +0200 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: deref problem X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Fri, 29 Jun 2007 11:59:29 +0200 Message-ID: In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: deref problem thread-index: Ace6L76lYUuUAS8pR/qOPbNm9OFdAAABFmsw From: =?iso-8859-1?Q?Fr=E9d=E9ric_Esnault?= To: X-OriginalArrivalTime: 29 Jun 2007 10:14:17.0410 (UTC) FILETIME=[405BB220:01C7BA36] X-Virus-Checked: Checked by ClamAV on apache.org Sorry, my bad, I used the type of the dereferenced node as the = jcr:deref() second argument, I should have used its name. It works ;) Fr=E9d=E9ric Esnault =20 -----Message d'origine----- De=A0: Fr=E9d=E9ric Esnault [mailto:fesn@legisway.com]=20 Envoy=E9=A0: vendredi 29 juin 2007 11:27 =C0=A0: users@jackrabbit.apache.org Objet=A0: jcr:deref problem Hi there, =20 I'm facing a problem I cannot understand. =20 I'm getting a node reference with this xpath query : =20 /jcr:root/lgw:root/lgw:contracts/descendant::*[position() =3D = 1]/descendant::*[position() =3D 6]/@lgw:externalContractor =20 The lgw:externalContractor holds a reference to a node of = lgw:contractorType. =20 But when I try to dereference it with the following query, it does not = return me my node... =20 /jcr:root/lgw:root/lgw:contracts/descendant::*[position() =3D = 1]/descendant::*[position() =3D 6]/jcr:deref(@lgw:externalContractor, = 'lgw:contractorType') =20 Does someone have an idea of something I would be missing? =20 Thanks ! =20 Frederic Esnault=20