Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 21869 invoked by uid 500); 14 Dec 2002 07:24:05 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 21851 invoked from network); 14 Dec 2002 07:24:04 -0000 Date: Fri, 13 Dec 2002 23:24:14 -0800 Mime-Version: 1.0 (Apple Message framework v548) Content-Type: text/plain; charset=US-ASCII; format=flowed Subject: JXPath logicsheet problem found From: Ovidiu Predescu To: Ugo Cei , cocoon-dev@xml.apache.org Content-Transfer-Encoding: 7bit Message-Id: <0C077B27-0F35-11D7-9642-00039398D61E@apache.org> X-Mailer: Apple Mail (2.548) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I found the problem with the "prefs" flow sample barfing on the registration page. The problem is definitely a Xalan problem, everything works just fine with 2.3.1, but fails on 2.4.1. The issue seems to be with the way the JPath logicsheet compiles the XPath expressions referred to in an XSP page. This is the relevant code: and later in the logicsheet we have: // Generate the compiled representation of the JXPath // expressions used by this page. which is later translated into a call to: jxpath_ This should generate unique variable names for each element in an XSP page. For example if the page refers to: the equivalent compiled code is: jxpath_firstName = jxpathContext.compile("firstName"); Xalan 2.4.1 seems to have problems while trying to generate code for more complex XPath expressions like: It will silently ignore the instructions above and not generate any code which precompiles the XPath expression. Bummer! I have no idea how to work around this problem. I'll try to come up with a simpler testcase, outside of Cocoon that reproduces the bug and log it in as a bug in Xalan. In the meantime it would be really nice if someone has a good workaround for this problem. An obvious one is to revert to Xalan 2.3.1, but I'm not sure this is something desirable. Any thoughts? Does anyone depend on any special features from 2.4.1? Regards, Ovidiu -- Ovidiu Predescu http://webweavertech.com/ovidiu/weblog/ --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org