From 0a7cee972640abe32f069fbf6da85b199d676441 Mon Sep 17 00:00:00 2001 From: Luca Date: Mon, 25 Feb 2019 13:10:11 +0100 Subject: [PATCH] Update view.php --- view.php | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) 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 '