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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 19:01:30 2024 UTC