PHP 8.5.0 Alpha 4 available for testing

Voting

: four plus four?
(Example: nine)

The Note You're Voting On

Jaroslaw Zabiello
14 years ago
This is more usefull, no files needed, it just takes XML and XSL strings as input parameters and returns transformed XML

<?php
/**
* @param $xml
* @param $xsl
* @return string xml
*/
function transform($xml, $xsl) {
$xslt = new XSLTProcessor();
$xslt->importStylesheet(new SimpleXMLElement($xsl));
return
$xslt->transformToXml(new SimpleXMLElement($xml));
}
?>

<< Back to user notes page

To Top