#20675 [Opn->Bgs]: namespace attribute for element stylesheet
| From: | chregu@php.net | Date: | Thu, 28 Nov 2002 13:03:06 +0000 |
| Subject: | #20675 [Opn->Bgs]: namespace attribute for element stylesheet | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-26082@lists.php.net to get a copy of this message | ||
ID: 20675
Updated by: chregu@php.net
Reported By: erwan@barzhoneg.com
-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] erwan@barzhoneg.com
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