renoua 0 Newbie Poster

Hi again!
I have this javascript 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);
  }
}

and I want to pass the variable id at the c011.xsl (???)
after that.. how c011.xsl can recognize that variable?
any help would be appreciated :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.