Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 14646 invoked by uid 500); 13 Jul 2002 15:55:37 -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 14635 invoked from network); 13 Jul 2002 15:55:37 -0000 From: "Vadim Gritsenko" To: Subject: RE: Found bug in XSLTC Date: Sat, 13 Jul 2002 11:54:31 -0400 Message-ID: <000801c22a85$941de7c0$0a00a8c0@vgritsenkopc> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > From: Koen Pellegrims [mailto:koen.pellegrims@pandora.be] > > I think this bug might be due to lazy type converions in XSLTC. > Have you tried passing the numbers into the numbers()-function > before the comparison, i.e.: ? I know work-around, see: > > I report this so XSLTC team can improve compiler. Vadim > The assignment through the if-construct makes $var into a result-set; I'm > not sure if XSLTC handles the type-conversions very well... > > K. > > > -----Oorspronkelijk bericht----- > > Van: Vadim Gritsenko [mailto:vadim.gritsenko@verizon.net] > > Verzonden: zaterdag 13 juli 2002 17:28 > > Aan: xalan-dev@xml.apache.org; Tom.Amiro@Sun.COM; Glenn.Miller@Sun.COM > > CC: morten@xml.apache.org; jacek_ambroziak@yahoo.com; > > cocoon-dev@xml.apache.org; 'Ivelin Ivanov' > > Onderwerp: Found bug in XSLTC > > > > > > Hi all, > > > > Found a bug in XSLTC, version from > > http://cvs.apache.org/viewcvs.cgi/*checkout*/xml-cocoon2/lib/core/xsltc. > > jar?rev=HEAD&content-type=text/plain. > > > > Here is XSLT reproducing the bug: > > ----------8<---------- > > > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> > > > > 2 > > > > > > > > > > > > Value of var: > > var is greater then 3: > > var is less then 3: > > > > Value of var2: > > var2 is greater then 3: > > var2 is less then 3: > > > > > > ----------8<---------- > > > > > > Output: > > ----------8<---------- > > Value of var: 2 > > var is greater then 3: false > > var is less then 3: false > > > > Value of var2: 2 > > var2 is greater then 3: false > > var2 is less then 3: true > > ----------8<---------- > > > > All other XSLT processors (Xalan, SAXON) produce output: > > ----------8<---------- > > Value of var: 2 > > var is greater then 3: false > > var is less then 3: true > > > > Value of var2: 2 > > var2 is greater then 3: false > > var2 is less then 3: true > > ----------8<---------- > > > > > > Regards, > > Vadim --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org