Return-Path: Delivered-To: apmail-xml-xalan-dev-archive@www.apache.org Received: (qmail 826 invoked from network); 5 Feb 2004 19:15:59 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 5 Feb 2004 19:15:59 -0000 Received: (qmail 21038 invoked by uid 500); 5 Feb 2004 18:02:38 -0000 Delivered-To: apmail-xml-xalan-dev-archive@xml.apache.org Received: (qmail 20942 invoked by uid 500); 5 Feb 2004 18:02:38 -0000 Mailing-List: contact xalan-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: xalan-dev@xml.apache.org Delivered-To: mailing list xalan-dev@xml.apache.org Received: (qmail 20868 invoked from network); 5 Feb 2004 18:02:37 -0000 Received: from unknown (HELO exchange.sun.com) (192.18.33.10) by daedalus.apache.org with SMTP; 5 Feb 2004 18:02:37 -0000 Received: (qmail 5968 invoked by uid 50); 5 Feb 2004 18:02:56 -0000 Date: 5 Feb 2004 18:02:56 -0000 Message-ID: <20040205180256.5967.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: xalan-dev@xml.apache.org Cc: Subject: DO NOT REPLY [Bug 26661] - Search fail in tree with normalize-space function 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 DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26661 Search fail in tree with normalize-space function David_N_Bertoni@lotus.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |INVALID ------- Additional Comments From David_N_Bertoni@lotus.com 2004-02-05 18:02 ------- As I stated before, I tested your stylesheet with a number of processors, and they all produced the same result. There is no bug here. In the first case you think is bad, no nodes are selected. The normalize-space () function accept a string as a parameter, but you are passing a node-set. The standard XPath conversion is to take only the _first_ node of the node-set, in document order, and convert that to a string. The result is another string that has been normalized. In this case, the string value is "d1", and the comparison to the literal string 'e1' fails. The second case is similar. You seem to be assuming the call to normalize_space() using a node-set will somehow return multiple strings, and the = operator will use existential quantification and find that one of the strings matches the literal string 'e1'. Although that is how the = operator works with a node-set, it does not work that way with a function that accepts a string and returns a string.