ID: 24989 Updated by: [EMAIL PROTECTED] Reported By: sitnikov at infonet dot ee -Status: Open +Status: Feedback Bug Type: XSLT related Operating System: Linux PHP Version: 4.3.3RC3 New Comment:
I can not reproduce this with latest PHP CVS and Sabltron 1.0. The output is 'SUCCESS' always. How did you configure Sablotron? And PHP? Previous Comments: ------------------------------------------------------------------------ [2003-08-08 15:58:37] sitnikov at infonet dot ee 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 this bug report at http://bugs.php.net/?id=24989&edit=1