ID: 20675 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Bogus Bug Type: XSLT related Operating System: win2k/Linux PHP Version: 4.3.0RC1 New Comment:
Not a PHP Bug. Either you wrote your xslt-stylesheet in the wrong way (be sure to set output="xml" otherwise namespaces are discarded) or your xslt-processor (Sablotron? libxslt?) has a bug The following works just fine with Sablotron 0.96 and libxslt 1.0.21 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" /> <xsl:template match="/"> <xsl:element name="xsl:stylesheet" namespace="http://www.w3.org/1999/XSL/Transform"> <xsl:attribute name="version">1.0</xsl:attribute> </xsl:element> </xsl:template> </xsl:stylesheet> Previous Comments: ------------------------------------------------------------------------ [2002-11-27 09:13:02] [EMAIL PROTECTED] When I generate a stylesheet from a xsl transformation (xml+xsl => xsl), I am willing to apply the namespace attribute. in xsl, this writes : <xsl:element name="xsl:stylesheet" namespace="http://www.w3.org/1999/XSL/Transform"> <xsl:attribute name="version">1.0</xsl:attribute> </xsl:element> but PHP xslt transformer applies the version number all right, and forgets the namespace attribute. Thanks ! ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20675&edit=1