<? $xslt = new XSLTProcessor(); $xslt->importStyleSheet(DomDocument::load('rss.xsl')); $html = $xslt->transformToDoc($rss); $html->formatOutput = true; print $html->saveXML(); ?>