2018-09-18 15:57:55 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
include_once __DIR__.'/init.php';
|
|
|
|
|
2019-01-03 21:17:04 +01:00
|
|
|
// XML
|
|
|
|
$xml = new DOMDocument();
|
|
|
|
$xml->loadXML($fattura_pa->toXML());
|
|
|
|
|
|
|
|
// XSL
|
|
|
|
$xsl = new DOMDocument();
|
|
|
|
$xsl->load(__DIR__.'/src/stylesheet-1.2.1.xsl');
|
|
|
|
|
|
|
|
// XSLT
|
|
|
|
$xslt = new XSLTProcessor();
|
|
|
|
$xslt->importStylesheet($xsl);
|
|
|
|
|
|
|
|
echo $xslt->transformToXML($xml);
|