JavaScript Editor Javascript debugger     Website design 

XSLTProcessor::__construct

Creates a new XSLTProcessor object ()

XSLTProcessor {
  __construct();
}

Creates a new XSLTProcessor object.

Examples

Example 2650. Creating an XSLTProcessor

<?php

$doc
= new DOMDocument();
$xsl = new XSLTProcessor();

$doc->load($xsl_filename);
$xsl->importStyleSheet($doc);

$doc->load($xml_filename);
echo
$xsl->transformToXML($doc);

?>