Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 72322 invoked from network); 5 Jan 2007 07:09:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Jan 2007 07:09:51 -0000 Received: (qmail 22448 invoked by uid 500); 5 Jan 2007 07:09:55 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 22355 invoked by uid 500); 5 Jan 2007 07:09:55 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 22344 invoked by uid 99); 5 Jan 2007 07:09:55 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Jan 2007 23:09:55 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Jan 2007 23:09:47 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8870B714310 for ; Thu, 4 Jan 2007 23:09:27 -0800 (PST) Message-ID: <30633266.1167980967528.JavaMail.jira@brutus> Date: Thu, 4 Jan 2007 23:09:27 -0800 (PST) From: "Simon Raess (JIRA)" To: commons-dev@jakarta.apache.org Subject: [jira] Commented: (JXPATH-12) [jxpath] Descendant or self axis does not work correctly at root node MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JXPATH-12?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12462419 ] Simon Raess commented on JXPATH-12: ----------------------------------- I've just applied your patch to version 1.2. The reported problem is solved now. > [jxpath] Descendant or self axis does not work correctly at root node > --------------------------------------------------------------------- > > Key: JXPATH-12 > URL: https://issues.apache.org/jira/browse/JXPATH-12 > Project: Commons JXPath > Issue Type: Bug > Affects Versions: 1.2 Final > Environment: Operating System: other > Platform: Other > Reporter: Simon Raess > Attachments: DescendantOrSelfTest.java, patch.jxpath-12.txt > > > Given the following XML document: > and the XPath: //root/@id/text(). > JXPath returns null instead of "1234". > JXPathContext context = JXPathContext.newContext(doc); > assertEquals(value, context.selectSingleNode("//root/@id/text()")); > The attached JUnit test highlights the problem. It seems that JXPath does not > find the root node if it is accessed with the axis descendant-or-self. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org