ID: 44971 Updated by: [EMAIL PROTECTED] Reported By: webermax2004 at yahoo dot fr -Status: Open +Status: Bogus Bug Type: XSLT related Operating System: Windows XP Pro PHP Version: 5.2CVS-2008-05-12 (CVS) New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. Not a bug. the nodeValue of that TextNode is actually "<" If you do echo $xmlDocument->saveXML(); you'll see, that it's correctly encoded Previous Comments: ------------------------------------------------------------------------ [2008-05-12 13:17:44] webermax2004 at yahoo dot fr Description: ------------ Here is a little XML file : <?xml version="1.0" encoding="iso-8859-1"?> <input><</input> and here is a little XSL stylesheet : <?xml version="1.0" encoding="iso-8859-1"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="input"> <output> <xsl:value-of select="." /> </output> </xsl:template> </xsl:stylesheet> and here is a little PHP code which transforms the XML document using the XSL stylesheet and displays the nodeValue of the documentElement : <html> <body> <?php $xmlDocument = new DOMDocument (); $xmlDocument->load ("test.xml"); $xmlStylesheet = new DOMDocument (); $xmlStylesheet->load ("test.xsl"); $xslTransfom = new XSLTProcessor (); $xslTransfom->importStylesheet ($xmlStylesheet); $xmlDocument = $xslTransfom->transformToDoc ($xmlDocument); echo ($xmlDocument->documentElement->firstChild->nodeValue); ?> </body> </html> My surprise : the output is "<" instead of "<", which means that the entity has been converted. This should not have happened unless I had specified the disable-output-escaping attribute in the <xsl:value-of>, right ? By the way, if I display the contents of the document after the transformation : echo ($xmlDocument->saveXML ()); then the "<" is not converted : <output><</output> Doesn't it sound like a problem ? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=44971&edit=1