Re: [PHP-XML-DEV] XSL in PHP5
[email protected] ("Eric Daspet")
| Newsgroups | php.xml.dev |
|---|---|
| Message-ID | <[email protected]> |
Tue, 01 Jul 2003 11:35:50 -0400, Rob Richards wrote : > Example is a little longer as it also includes some of the DOM > functionality I've a problem with method names if <xsl:output method="..."/> is not "xml" : > print $proc->transform_to_xml($dom2)."\n\n"; This name let me think that the return value is always well formed XML string. > $result = $proc->transform_to_doc($dom2); print $result->savexml(); This one too ... (as $result is a domDocument, savexml() outputs well formed XML). I think the first one will not always output xml. Am I wrong ? Maybe a name like transform() or transform_to_string() is better ? -- Eric Daspet