03-31-2015 07:43 AM
Hello i'm linking XML files with the XSL using PHP ,
//load blob of xsl file that exists in Nuxeo
//load blob of xml file that exists in Nuxeo
//Load XSL from a string
$xslDoc = new \DOMDocument();
$xslDoc->loadXML($xsl);
//Load XML from a string
$xmlDoc = new \DOMDocument();
$xmlDoc->loadXML($xml);
$metadata = $simpleXml->xpath($xpath);
$proc = new \XSLTProcessor();
$proc->importStylesheet($xslDoc);
$output = $proc->transformToXML($xmlDoc);
My files XML and XSl are existing in my plateform Nuxeo, The XSL file has this line **<xsl:include href="outils.xsl"/>**
.
The problem is here "$proc->importStylesheet($xslDoc);" He cannot include outils.xsl that exists in Nuxeo , Is there any Solution?
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.