From user-return-24686-apmail-commons-user-archive=commons.apache.org@commons.apache.org Fri Jul 02 11:00:53 2010 Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 6122 invoked from network); 2 Jul 2010 11:00:52 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Jul 2010 11:00:52 -0000 Received: (qmail 11680 invoked by uid 500); 2 Jul 2010 11:00:51 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 11572 invoked by uid 500); 2 Jul 2010 11:00:48 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 11562 invoked by uid 99); 2 Jul 2010 11:00:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Jul 2010 11:00:47 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mkunnumpurath@googlemail.com designates 209.85.161.43 as permitted sender) Received: from [209.85.161.43] (HELO mail-fx0-f43.google.com) (209.85.161.43) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Jul 2010 11:00:41 +0000 Received: by fxm18 with SMTP id 18so2366354fxm.30 for ; Fri, 02 Jul 2010 04:00:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=P/zN/Qzc2dMbpVKHFbYBdzE+rPyjp5xFWKRvON0GMeU=; b=HJOeTv7OMrCMbWXupGYki70NH0+WAqqplXBJLiyL/99nkK9Z4EIX56Wzjfx+4kSUj4 kkpxltv2QSmHpsWa95pZTq8nGTq7ZThocnah2LiuqFApktiWGNNboXnrE/MaTdFa3jyi vMsqfxP8O1O1L0TG1bPeLk/RqFmcHX8QWkksM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=njshf0Uou7pfzlxR6ET4/dLeNpgQN7diKMr4goNLpGzjzqyqDx0AXrdAkbr/2kpMOP 5GPyhLrc/mU5J++/n/c6qZ1J4Ey2LsMFaC53GFHJ7qfBHAZjkokN6JE+ALYEOJmHG2Qe 4M2bnakl4sTyZDUeHrKGMZEf+CGQ8q577zyhs= MIME-Version: 1.0 Received: by 10.239.150.19 with SMTP id l19mr38524hbb.129.1278068418820; Fri, 02 Jul 2010 04:00:18 -0700 (PDT) Received: by 10.239.168.69 with HTTP; Fri, 2 Jul 2010 04:00:18 -0700 (PDT) In-Reply-To: References: Date: Fri, 2 Jul 2010 12:00:18 +0100 Message-ID: Subject: Re: JXPath Boolean Expressions From: Meeraj Kunnumpurath To: user@commons.apache.org Content-Type: multipart/alternative; boundary=001485f626f81a3b39048a657ef9 X-Virus-Checked: Checked by ClamAV on apache.org --001485f626f81a3b39048a657ef9 Content-Type: text/plain; charset=ISO-8859-1 I think, I have the answer to my question. From a struct XPath perspective, I guess the expression should be foo = true() On Fri, Jul 2, 2010 at 11:28 AM, Meeraj Kunnumpurath < mkunnumpurath@googlemail.com> wrote: > Hi, > > I have the following snippet to evaluate a boolean expression from a map, > > Map map = new HashMap(); > map.put("foo", false); > System.err.println(JXPathContext.newContext(map).getValue("foo = false")); > > The above seems to be printing false instead of true. > > Kind regards > Meeraj > --001485f626f81a3b39048a657ef9--