ID:               43804
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Bogus
 Bug Type:         DOM XML related
 Operating System: Linux
 PHP Version:      5.2.5
 New Comment:

You have to use createElementNS instead of createElement for adding 
namespaced Elements via DOM 


Previous Comments:
------------------------------------------------------------------------

[2008-01-10 08:52:10] [EMAIL PROTECTED]

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 this bug report at http://bugs.php.net/?id=43804&edit=1

Reply via email to