xmlxsl적용하는 JavaScript

function doXSLT()
{
	if(xmlDoc==null || xslDoc==null)
		return;
		
	var msg_id = document.getElementById("msg_id");
	
	if(window.ActiveXObject){
		msg_id.innerHTML = xmlDoc.trasformNode(xslDoc);
	}
	else{
		var xsltProc = new XSLTProcessor();
		xsltProc.importStylesheet(xslDoc);
		var fragment = xsltProc.transformToFragment(xmlDoc, document);
		msg_id.appendChild(fragment);
	}
}

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2008-08-27 17:32:32
Processing time 0.0064 sec