hello,
I have this javascript code
and I want to pass the variable id at the c011.xsl
after that.. how c011.xsl can recognize that variable? what's the syntax?
any help would be appreciated :)
I have this javascript code
Code:
function displayResult2(id)
{
xml=loadXMLDoc("anna.xml");
xsl=loadXMLDoc("c011.xsl");
// code for IE
if (window.ActiveXObject)
{
ex=xml.transformNode(xsl);
document.getElementById("right").innerHTML=ex;
}
// code for Mozilla, Firefox, Opera, etc.
else if (document.implementation && document.implementation.createDocument)
{
var xsltProcessor=new XSLTProcessor();
xsltProcessor.importStylesheet(xsl);
resultDocument = xsltProcessor.transformToFragment(xml,document);
document.getElementById("right").appendChild(resultDocument);
}
}
after that.. how c011.xsl can recognize that variable? what's the syntax?
any help would be appreciated :)
Comment