. */ include_once __DIR__.'/../../core.php'; use Plugins\ImportFE\FatturaElettronica; $directory = FatturaElettronica::getImportDirectory(); $filename = get('filename'); $content = file_get_contents($directory.'/'.$filename); // XML $xml = new DOMDocument(); $xml->loadXML($content); // XSL $xsl = new DOMDocument(); $xsl->load(base_dir().'/plugins/xml/asso-invoice.xsl'); // XSLT $xslt = new XSLTProcessor(); $xslt->importStylesheet($xsl); echo $xslt->transformToXML($xml);