|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-12-03 11:34 UTC] verx at implix dot com
LibXML 2.4.28, LibXSLT 1.0.23 (both the most recent). <xsl:output method="html"/> is not working properly. The output should follow w3c rules (http://www.w3.org/TR/xslt#section-HTML-Output-Method) but it doesn't. However when using xsltproc (binary for testing transformations, it's in LibXSLT package) output is correct - that means that this is a PHP bug. To be honest I think none of <xsl:output .../> attributes is really working (like omit-xml-declaration or cdata-section-elements). PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 01:00:01 2025 UTC |
My mistake. You're right. Your solution works perfectly. Note that: $xsldoc = domxml_xslt_stylesheet_file($filename); $result = $xsldoc->process($xmldoc[,$params]); $result->dump_mem(); will also produce output but ommiting <xsl:output> tag. I have been fooled by $params in your example and made $params = array('method' => 'html') and I didn't really check that <xsl:output> is indeed working.