Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 4158 invoked from network); 29 Jun 2004 06:31:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 29 Jun 2004 06:31:11 -0000 Received: (qmail 48796 invoked by uid 500); 29 Jun 2004 06:31:24 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 48610 invoked by uid 500); 29 Jun 2004 06:31:22 -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 48525 invoked by uid 99); 29 Jun 2004 06:31:19 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [203.111.164.74] (HELO modelo.allette.com.au) (203.111.164.74) by apache.org (qpsmtpd/0.27.1) with ESMTP; Mon, 28 Jun 2004 23:31:16 -0700 Received: from allette.com.au (pc71.allette.com.au [192.168.200.71]) by modelo.allette.com.au (8.12.8/8.12.8) with ESMTP id i5T6YmJj032070 for ; Tue, 29 Jun 2004 16:34:48 +1000 Message-ID: <40E10D43.4000304@allette.com.au> Date: Tue, 29 Jun 2004 16:33:39 +1000 From: Jean-Baptiste REURE User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: commons-user@jakarta.apache.org Subject: [JXPath] function name() with attribute nodes. Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, Just wondering if the JXPath mailing list is still alive. Well if it is, I have a question. I'm trying to point to certain attributes in my xml data using the following xpath: element/@*[name()!='attribute'] This should retrieve all attributes of the element called "element" but the attribute called "attribute", if i'm not mistaken. However, this is not the case, all attributes are returned, even the "attribute" one. I tried to play around a bit and I realised that the xpath: element/@attribute[name()!='attribute'] would also return the attribute "attribute". But the xpath: element/@*[string()!='value'] where "value" is the value of the attribute "attribute" does work (attribute "attribute" is not retrieved). My conclusion was then that the method name() for attribute was not working in JXPath 1.1. Is it a bug or simply not implemented yet? Thanks, Jean-Baptiste REURE. --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org