Solved

function loadXMLDoc(filename)
{
xhttp = new XMLHttpRequest();
xhttp.open("GET", filename, false);
xhttp.send("");
return xhttp.responseXML;
}

function displayResult()
{
xml = loadXMLDoc(location.href);
xsl = loadXMLDoc("http://localhost:8000/cdcatalog.xsl");
xsltProcessor = new XSLTProcessor();
xsltProcessor.importStylesheet(xsl);
resultDocument = xsltProcessor.transformToDocument(xml);
}

displayResult()

window.content  = resultDocument;

document.replaceChild (
    document.importNode (resultDocument.documentElement, true),
    document.documentElement
);