load('inimesed.xml'); $xsl = new DOMDocument; $xsl->load('inimesed2.xsl'); $proc = new XSLTProcessor; $proc->importStyleSheet($xsl); echo $proc->transformToXML($xml); ?>