Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 48149 invoked from network); 19 Nov 2007 11:45:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Nov 2007 11:45:19 -0000 Received: (qmail 26016 invoked by uid 500); 19 Nov 2007 11:45:05 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 25996 invoked by uid 500); 19 Nov 2007 11:45:05 -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 25987 invoked by uid 99); 19 Nov 2007 11:45:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Nov 2007 03:45:05 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gcaju-users@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Nov 2007 11:44:54 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Iu53K-0001fw-DV for users@jackrabbit.apache.org; Mon, 19 Nov 2007 11:44:34 +0000 Received: from gateway.subshell.com ([212.79.22.193]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 19 Nov 2007 11:44:34 +0000 Received: from christoph by gateway.subshell.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 19 Nov 2007 11:44:34 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: users@jackrabbit.apache.org From: Christoph Kiehl Subject: Re: XPath query returns no results Date: Mon, 19 Nov 2007 12:44:04 +0100 Lines: 17 Message-ID: References: <47417531.4050002@salzburgresearch.at> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: gateway.subshell.com User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) In-Reply-To: <47417531.4050002@salzburgresearch.at> Sender: news X-Virus-Checked: Checked by ClamAV on apache.org Daniel Mitterdorfer wrote: > If I query for > all nodes using the XPath query '//*', I get all nodes in the > repository. So far, so good. However, if i want to query only for the > 'interedu' subtree using the XPath query '//interedu/*' i get no results > although 'interedu' has child nodes. I have already tried quite a few > things but got no sufficient results (including a research on the > Jackrabbit mailing lists). Can anybody see my error(s) or give me some > pointers? Thanks! I'm not an XPath expert and it might be a bug, that the above doesn't work. But until then try 'interedu/*' or '/jcr:root/interedu/*'. Relative queries are always relative to the root node. Cheers, Christoph