Transforming XML with XSLT and PHP functions : XSLTProcessor « XML « PHP
- PHP
- XML
- XSLTProcessor
Transforming XML with XSLT and PHP functions
<?
$dom = new DOMDocument;
$dom->loadXML('<blank/>');
$xsl = new DOMDocument;
$xsl->load('stylesheet.xsl');
$xslt = new XSLTProcessor();
$xslt->importStylesheet($xsl);
$xslt->registerPHPFunctions();
print $xslt->transformToXML($dom);
?>
Related examples in the same category