Open shadiakiki1986 opened 6 years ago
xml = loadXMLDoc("test.xml"); xsl = loadXMLDoc("test.xsl"); if (document.implementation && document.implementation.createDocument) { xsltProcessor = new XSLTProcessor(); xsltProcessor.importStylesheet(xsl); resultDocument = xsltProcessor.transformToFragment(xml, document); document.getElementById('container').appendChild(resultDocument); }