I am trying to build a script that gets XMLs of different structures and create one unique XML containing all the data. A key point is that using an XSLT I rename/transform the nodes/elements because as I said the source XMLs have different structure. So the newly produced XML has a generic structure for me to use properly.
My question is how can I modify this to produce me a result of multiple XMLs?
The XMLs will be either relative or absolute path.
<?php
// create an XSLT processor and load the stylesheet as a DOM
$xproc = new XsltProcessor();
$xslt = new DomDocument;
$xslt->load('stylesheet.xslt'); // this contains the code from above
$xproc->importStylesheet($xslt);
// DOM or the source XML
$xml = '';
$dom = new DomDocument;
$dom->loadXML($xml);
?>