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