Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 54037 invoked from network); 17 Nov 2010 11:57:48 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Nov 2010 11:57:48 -0000 Received: (qmail 93772 invoked by uid 500); 17 Nov 2010 11:58:19 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 93700 invoked by uid 500); 17 Nov 2010 11:58:17 -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 93691 invoked by uid 99); 17 Nov 2010 11:58:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Nov 2010 11:58:17 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.216.170] (HELO mail-qy0-f170.google.com) (209.85.216.170) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Nov 2010 11:58:10 +0000 Received: by qyk36 with SMTP id 36so587075qyk.1 for ; Wed, 17 Nov 2010 03:57:49 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.80.194 with SMTP id u2mr7714304qck.49.1289995069149; Wed, 17 Nov 2010 03:57:49 -0800 (PST) Received: by 10.229.240.211 with HTTP; Wed, 17 Nov 2010 03:57:49 -0800 (PST) Date: Wed, 17 Nov 2010 21:57:49 +1000 Message-ID: Subject: 'reverse path prefix' xpath query From: Torgeir Veimo To: users@jackrabbit.apache.org Content-Type: text/plain; charset=ISO-8859-1 I need to query a workspace to find subscribers nodes to be notified for a workspace event. Each subscribers have a subscription node with a property containing the path prefix for what they're subscribing to. The event listener provides the full path to the node being updated. Eg. someone subscribes to new blog entries under /blog/wildlife/. A new blog entry is added with a path of /blog/wildlife/2010/11/17/wolfs How do I construct an xpath query that finds the nodes with the correct path prefix property? -- -Tor