#43804 [NEW]: XSLTProcessor fails to recognise dynamically created <xsl:> tags

From: Date: Thu, 10 Jan 2008 08:52:10 +0000
Subject: #43804 [NEW]: XSLTProcessor fails to recognise dynamically created <xsl:> tags
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-121172@lists.php.net to get a copy of this message
From: shangxiao@php.net Operating system: Linux PHP version: 5.2.5 PHP Bug Type: DOM XML related Bug description: XSLTProcessor fails to recognise dynamically created <xsl:> tags Description: ------------ I've got a piece of code where I needed to dynamically create some xsl commands in my xsl stylesheet using the DOM api, but when I pass the DOMDocument to XSLTProcessor, it fails to recognise these commands. However, if the DOMDocument is exported to a string and then www.dictioloaded into a different DOMDocument, the result is correct. The function normalizeDocument() does not seem to have any effect. The test files may be located at: http://www.assessments.com.au/xsl_bug/ Reproduce code: --------------- http://www.assessments.com.au/xsl_bug/test.phps Expected result: ---------------- <html xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2007-11-27T05:06:00"><body>This text should appear!<body></html> Actual result: -------------- <html xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2007-11-27T05:06:00"><body><xsl:value-of xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select="my:test"></xsl:value-of></body></html> -- Edit bug report at http://bugs.php.net/?id=43804&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43804&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43804&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43804&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43804&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=43804&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=43804&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=43804&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=43804&r=needscript Try newer version: http://bugs.php.net/fix.php?id=43804&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=43804&r=support Expected behavior: http://bugs.php.net/fix.php?id=43804&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=43804&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=43804&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=43804&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43804&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=43804&r=dst IIS Stability: http://bugs.php.net/fix.php?id=43804&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=43804&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=43804&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=43804&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=43804&r=mysqlcfg

« previous php.bugs (#121172) next »