Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 70679 invoked from network); 26 Feb 2009 11:29:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Feb 2009 11:29:14 -0000 Received: (qmail 69933 invoked by uid 500); 26 Feb 2009 11:29:11 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 69857 invoked by uid 500); 26 Feb 2009 11:29:10 -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 69826 invoked by uid 99); 26 Feb 2009 11:29:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Feb 2009 03:29:10 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG 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; Thu, 26 Feb 2009 11:29:02 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LcePy-000433-2T for users@jackrabbit.apache.org; Thu, 26 Feb 2009 03:28:42 -0800 Message-ID: <22222274.post@talk.nabble.com> Date: Thu, 26 Feb 2009 03:28:42 -0800 (PST) From: Noam Tenne To: users@jackrabbit.apache.org Subject: Using wildcards after encoding digits with ISO9075 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: noamt@jfrog.org X-Virus-Checked: Checked by ClamAV on apache.org Hello there A query which I try to execute involves a version number: /jcr:root/prod/2.7.7/element(*, dummy:file) After failing with this query I have found out that I need to encode the digits of the version with ISO9075, which makes the query run properly. But another problem I am facing is, in a case that I would like to surround the version number with wildcards (?, %, *). When trying to surround the encoded (or non-encoded) version with different wildcards, I get an error: javax.jcr.query.InvalidQueryException: Lexical error at line 1, column 40. Encountered: "_" (95), after : "" for statement: for $v in /jcr:root/prod/*_x0032_.7.7*/element(*, dummy:file) return $v: Lexical error at line 1, column 17. Encountered: "_" (95), after : "": Lexical error at line 1, column 17. Encountered: "_" (95), after : "" I know that I can use - element(*)[jcr:like(@dummy:name,'%2.7.7%')] instead of encoding and surrounding, but was wondering if the failure of the manual method is a bug? Thanks Noam -- View this message in context: http://www.nabble.com/Using-wildcards-after-encoding-digits-with-ISO9075-tp22222274p22222274.html Sent from the Jackrabbit - Users mailing list archive at Nabble.com.