From: sitnikov at infonet dot ee Operating system: Linux PHP version: 4.3.3RC3 PHP Bug Type: XSLT related Bug description: PHP 4.3.3RC3 & Sablot 1.0 problem
Description: ------------ b.xml ------------------------------------ <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="b.xsl"?> <test> </test> ------------------------------------ b.xsl ------------------------------------ <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/test"> <html> <head> <title>TEST</title> </head> <body bgcolor="blue" text="#000000"> <center>HELLO</center> </body> </html> </xsl:template> </xsl:stylesheet> ------------------------------------ b.php ------------------------------------ <? // Allocate a new XSLT processor $xh = xslt_create() or die('Can not do; xslt_create()'); xslt_set_log($xh, true); xslt_set_log($xh, '/tmp/sablot.log'); // Process the document if ($result = xslt_process($xh, './data/b.xml', './data/b.xsl')) { print "SUCCESS, test.xml was transformed by test.xsl into result.xml"; print ", result.xml has the following contents\n<br>\n"; print "<pre>\n"; echo $result; print "</pre>\n"; } else { print "Sorry, test.xml could not be transformed by test.xsl into"; print " result.xml the reason is that " . xslt_error($xh) . " and the "; print "error code is " . xslt_errno($xh); } xslt_free($xh); ?> -------------------------------------- Results: sabcmd: SUCCESS PHP 4.3.2: SUCCESS PHP 4.3.3RC3: ERROR (duplicate attribute and the error code is 2) -- Edit bug report at http://bugs.php.net/?id=24989&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24989&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24989&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=24989&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24989&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24989&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24989&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24989&r=support Expected behavior: http://bugs.php.net/fix.php?id=24989&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24989&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24989&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24989&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24989&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24989&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24989&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24989&r=gnused