Re: XSL in PHP5
| From: | Eric Daspet | Date: | Wed, 02 Jul 2003 13:31:37 +0000 |
| Subject: | Re: XSL in PHP5 | ||
| References: | 1 2 | Groups: | php.xml.dev |
| Request: | Send a blank email to php-xml-dev+get-150@lists.php.net to get a copy of this message | ||
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