Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45883 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39782 invoked from network); 28 Oct 2009 08:14:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Oct 2009 08:14:51 -0000 X-Host-Fingerprint: 123.118.104.37 unknown Received: from [123.118.104.37] ([123.118.104.37:11342] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 67/50-37512-A7DF7EA4 for ; Wed, 28 Oct 2009 03:14:50 -0500 Message-ID: <67.50.37512.A7DF7EA4@pb1.pair.com> To: internals@lists.php.net Date: Wed, 28 Oct 2009 16:14:51 +0800 User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit X-Posted-By: 123.118.104.37 Subject: XSLT Bug? From: jiangcat@gmail.com (Chris Jiang) Hi guys! I don't know if anybody ever encountered a strange problem as I did, but I've found a strange behavior of XSLT processor when I was working on my project. The case is simple, but weird, it just occasionally generates improper result with the XML and XSL data I've inputted. Even worse, it happens with out any sign or regular operation, which means I can't reproduce this bug. With the same XML + XSL, it gives a perfect result sometimes, but occationally, a buggy result. My code was like the following: XML: ... 1 2 ... XSL: ... ... I was expecting something like this: However, the result could be such a mass sometimes, like: I've been checking the XSL hundreds of times, and made sure it's bug free. Plus, it transforms properly most of the time, but... Anyone knows the reason? Is it a bug or something? BTW: Did PHP 5 remove the Sab lib (xslt_create()) from it's default ext build? I can't find more info about this ext nor a download of it now. Thx!