Update view.php

This commit is contained in:
Luca 2019-02-25 13:10:11 +01:00
parent 0e62ab73c3
commit 0a7cee9726
1 changed files with 10 additions and 4 deletions

View File

@ -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(DOMDocument::load($stylesheet));
$xslt->importStylesheet($xsl);
echo '
<style>