From jackrabbit-dev-return-4134-apmail-incubator-jackrabbit-dev-archive=www.apache.org@incubator.apache.org Mon Oct 24 13:32:04 2005 Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 58675 invoked from network); 24 Oct 2005 13:32:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Oct 2005 13:32:04 -0000 Received: (qmail 41855 invoked by uid 500); 24 Oct 2005 13:32:02 -0000 Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-dev@incubator.apache.org Received: (qmail 41793 invoked by uid 99); 24 Oct 2005 13:32:02 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [84.96.21.10] (HELO mail.anyware-tech.com) (84.96.21.10) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Oct 2005 06:32:02 -0700 Received: from localhost (localhost [127.0.0.1]) by mail.anyware-tech.com (Postfix) with ESMTP id AA1A0338E9 for ; Mon, 24 Oct 2005 15:31:41 +0200 (CEST) Received: from mail.anyware-tech.com ([127.0.0.1]) by localhost (trinity [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29211-01 for ; Mon, 24 Oct 2005 15:31:36 +0200 (CEST) Received: from [10.0.0.139] (jayce.anyware [10.0.0.139]) by mail.anyware-tech.com (Postfix) with ESMTP id 49126338C9 for ; Mon, 24 Oct 2005 15:31:36 +0200 (CEST) Message-ID: <435CE235.2050101@anyware-tech.com> Date: Mon, 24 Oct 2005 15:31:33 +0200 From: =?ISO-8859-1?Q?Rapha=EBl_Franchet?= User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: fr, en MIME-Version: 1.0 To: jackrabbit-dev@incubator.apache.org Subject: Xpath query, jcr:like and character ' Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at anyware-tech.com X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello, Following the spec 6.6.4.9, to find node with title containing the word - test'test -, this should work: createQuery("//*[jcr:like(@title, '%test''test%')]", Query.XPATH).execute() but it does not find my node with a title - test'test -. ps: it works fine with a wildcard character: createQuery("//*[jcr:like(@title, '%test_test%')]", Query.XPATH).execute() what is wrong ? isn't escaping of ' not done with '' ? thanks, -- Raphaël FRANCHET IT ANYWARE TECHNOLOGIES Tel: +33 (0)5 61 00 73 47 Fax : +33 (0)5 61 00 51 46 www.anyware-tech.com