Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 75908 invoked from network); 7 Apr 2009 08:35:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Apr 2009 08:35:54 -0000 Received: (qmail 82583 invoked by uid 500); 7 Apr 2009 08:35:53 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 82546 invoked by uid 500); 7 Apr 2009 08:35: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 82535 invoked by uid 99); 7 Apr 2009 08:35:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Apr 2009 08:35:53 +0000 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 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; Tue, 07 Apr 2009 08:35:45 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Lr6mC-0003tO-SO for users@jackrabbit.apache.org; Tue, 07 Apr 2009 01:35:24 -0700 Message-ID: <22924528.post@talk.nabble.com> Date: Tue, 7 Apr 2009 01:35:24 -0700 (PDT) From: =?UTF-8?Q?Jacob_Berg=C3=B6=C3=B6?= To: users@jackrabbit.apache.org Subject: XPath query problem MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: jacob.bergoo@gmail.com X-Virus-Checked: Checked by ClamAV on apache.org Hi I am trying to find all files of a specific type (eg. *.html) from a subtree in the repository. Could not find any solutions in the forum. So far I have managed to list all files with the following xpath statement: "TEMPLATES//*[@jcr:primaryType = 'nt:file']" I tried to use: fn:ends-with(@name, '.html') but jackrabbit complains that it does not support this function. Any ideas? best regards, Jacob -- View this message in context: http://www.nabble.com/XPath-query-problem-tp22924528p22924528.html Sent from the Jackrabbit - Users mailing list archive at Nabble.com.