Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 68517 invoked from network); 28 Apr 2010 19:28:53 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 Apr 2010 19:28:53 -0000 Received: (qmail 62360 invoked by uid 500); 28 Apr 2010 19:28:53 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 62338 invoked by uid 500); 28 Apr 2010 19:28:53 -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 62329 invoked by uid 99); 28 Apr 2010 19:28:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Apr 2010 19:28:53 +0000 X-ASF-Spam-Status: No, hits=-0.9 required=10.0 tests=AWL,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [72.55.186.13] (HELO s010.panelboxmanager.com) (72.55.186.13) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Apr 2010 19:28:45 +0000 Received: from dsl-153-87.aei.ca ([66.36.153.87] helo=[192.168.0.107]) by s010.panelboxmanager.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1O7Cvo-0001Og-47 for users@jackrabbit.apache.org; Wed, 28 Apr 2010 15:28:24 -0400 From: =?iso-8859-1?Q?Fran=E7ois_Cassistat?= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: How to do this JCR XPath query Date: Wed, 28 Apr 2010 15:28:07 -0400 Message-Id: <97644560-0298-4B74-B25E-95629AA8510D@maya-systems.com> To: users@jackrabbit.apache.org Mime-Version: 1.0 (Apple Message framework v1078) X-Mailer: Apple Mail (2.1078) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - s010.panelboxmanager.com X-AntiAbuse: Original Domain - jackrabbit.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - maya-systems.com X-Source: X-Source-Args: X-Source-Dir: Hi ! I need to do something like : //element(*, my:type)[... and element(*, = my:othertype)[@someattribute=3D'somevalue' and = @someotherattribute=3D'someothervalue'] and ...] The problem is that my query don't know the subnode names, but one of = these subnode should satify the two (or more) conditions. This does not look like an accepted syntax in JCR Xpath. Any = equivalence? Is this possible with SQL2 or JQOM? Thanks, Frank