load($xsl_f); $xsl = new XSLTProcessor(); $xsl->importStyleSheet($doc); $doc->load($xml_f); $result = $xsl->transformToXML($doc); } ?>