diff --git a/view.php b/view.php index 2f7f72f7d..685bc0bd6 100644 --- a/view.php +++ b/view.php @@ -32,11 +32,17 @@ if ($file->isFatturaElettronica()) { $content = str_replace('http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fattura/messaggi/v1.0', 'http://www.fatturapa.gov.it/sdi/messaggi/v1.0', $content); // XML - $xml = DOMDocument::loadXML($content); + $xml = new DOMDocument(); + $xml->loadXML($content); + + // XSL + $xsl = new DOMDocument(); + $xsl->load(DOCROOT.'/plugins/xml/asso-invoice.xsl'); + + // XSLT + $xslt = new XSLTProcessor(); + $xslt->importStylesheet($xsl); - // XSLT - $xslt = new XSLTProcessor(); - $xslt->importStylesheet(DOMDocument::load($stylesheet)); echo '