Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 67613 invoked from network); 18 Feb 2004 21:16:11 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 18 Feb 2004 21:16:11 -0000 Received: (qmail 22237 invoked by uid 500); 18 Feb 2004 21:15:53 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 22221 invoked by uid 500); 18 Feb 2004 21:15:53 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 22200 invoked from network); 18 Feb 2004 21:15:52 -0000 Received: from unknown (HELO natsmtp00.webmailer.de) (81.169.145.165) by daedalus.apache.org with SMTP; 18 Feb 2004 21:15:52 -0000 Received: from web.de (pD9E78F83.dip0.t-ipconnect.de [217.231.143.131]) by post.webmailer.de (8.12.10/8.12.10) with ESMTP id i1ILFurg020358 for ; Wed, 18 Feb 2004 22:15:56 +0100 (MET) Message-ID: <4033D634.6010200@web.de> Date: Wed, 18 Feb 2004 22:16:36 +0100 From: joern turner User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jakarta Commons Users List Subject: [jxpath] problem with predicates Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N hello, i've got a problem evaluating predicates when used in conjunction with relative contexts. here the xml-input i'm using: here's the code: //document is a DOM containing the above xml JXPathContext rootContext = JXPathContext.newContext(document); //the xpath must be evaluated relative to pointer Pointer pointer = rootContext.getPointer("/people/new/@name"); JXPathContext relativeContext = rootContext.getRelativeContext(this.pointer); //ok assertTrue(relativeContext.getPointer("not(//person/@name=.)").getValue().toString().equals("true")); //fails this.pointer.setValue("Name1"); assertTrue(relativeContext.getPointer("not(//person/@name=.)").getValue().toString().equals("false")); i've tried this and that but with no success. can someone shed some light on this or teach me what i'm doing wrong? thanks, Joern --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org