php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #29496 Output from XSL transformation should not contain xmlns=""
Submitted: 2004-08-02 18:20 UTC Modified: 2004-08-03 10:04 UTC
From: tony at marston-home dot demon dot co dot uk Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 5.0.0 OS: *
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: tony at marston-home dot demon dot co dot uk
New email:
PHP Version: OS:

 

 [2004-08-02 18:20 UTC] tony at marston-home dot demon dot co dot uk
Description:
------------
I produce all my HTML output from XSL transformations and I do not bother with any namespaces, yet my output is clutterred with a lot of xmlns="" statements. If the namespace is null this statement should not be included in the output.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-03 10:04 UTC] chregu@php.net
Nothing wrong with that. And anyway not a PHP "bug" (libxslt does that)

You should use 
$xslproc->transformToXml($dom) and set the xsl:output method to "html", that maybe helps (didn't test it...) or not set any namespaces (not even "empty" ones).


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Aug 15 16:00:03 2025 UTC