Transforming XML to HTML with XSL : XSLTProcessor « XML « PHP
- PHP
- XML
- XSLTProcessor
Transforming XML to HTML with XSL
<?
$xslt = new XSLTProcessor();
$xslt->importStyleSheet(DomDocument::load('rss.xsl'));
$html = $xslt->transformToDoc($rss);
$html->formatOutput = true;
print $html->saveXML();
?>
Related examples in the same category