openstamanager/plugins/exportFE/view.php

18 lines
299 B
PHP
Raw Normal View History

2018-09-18 15:57:55 +02:00
<?php
include_once __DIR__.'/init.php';
// 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);