ID: 27349 Updated by: [EMAIL PROTECTED] Reported By: kalita at implix dot com Status: Open Bug Type: DOM XML related Operating System: FreeBSD 4.9 PHP Version: 4.3.5RC3 New Comment:
Should be fixed in CVS Previous Comments: ------------------------------------------------------------------------ [2004-02-24 06:46:05] kalita at implix dot com l: phptemp p: phptemp ------------------------------------------------------------------------ [2004-02-24 06:36:48] [EMAIL PROTECTED] you're link is password protected... ------------------------------------------------------------------------ [2004-02-23 06:14:36] kalita at implix dot com http://devel.implix.com/test_area/xmltest/ (directory index is on) test.php - php file to make transformation simple.xml - source xml file simple.xsl - source xsl file test.phps - source for the php file phpinfo.php - phpinfo output Please compare the output from PHP to output from xsltproc: xsltproc simple.xsl simple.xml The output is different and xsltproc generates the correct output (disabled escaping of CDATA section) while PHP returns CDATA section that is escaped. ------------------------------------------------------------------------ [2004-02-23 05:12:18] [EMAIL PROTECTED] This is not a PHP bug. If anyone's doing wrong here, it's libxslt, but I couldn't reproduce it.. ------------------------------------------------------------------------ [2004-02-22 09:24:04] kalita at implix dot com Description: ------------ With the most recent LibXML/LibXSLT libs CDATA sections in XSL templates that are enclosed in <xsl:text disable-output-escaping="yes"> give output that IS escaped but shouldn't be. I've been testing the transformation with xsltproc and everything behaves correctly. That's why I assume that this is incompatibility of the DOMXML extension with the most recent LibXML/LibXSLT libs. LibXML - 2.6.5 LibXSLT - 1.1.2 Note that this doesn't happen with the LibXSLT branch 1.0.X Reproduce code: --------------- (...) <xsl:text disable-output-escaping="yes"> <![CDATA[ <b> test </b> ]]> </xsl:text> (...) Expected result: ---------------- <b>test</b> Actual result: -------------- <b>test</b> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27349&edit=1