Jump to content

XML parameter send to xsl


menardmam

Recommended Posts

here is my little bit of code

function buildtable(tableid,xmlfilename,langue,currency){	xml=loadXMLDoc(xmlfilename);xsl=loadXMLDoc('listedeprix.xsl');// code for IEif (window.ActiveXObject)  {    ex=xml.transformNode(xsl);  document.getElementById(tableid).innerHTML=ex;  }  // code for Mozilla, Firefox, Opera, etc.else if (document.implementation&& document.implementation.createDocument)  {  var xsltProcessor=new XSLTProcessor();   xsltProcessor.importStylesheet(xsl);     xsltProcessor.setParameter(null, 'langue',langue);  xsltProcessor.setParameter(null, 'currency',currency);}  // clear the contents  document.getElementById(tableid).innerHTML = "";    var fragment = xsltProcessor.transformToFragment(xml, document);    var myDOM = fragment;  // add the new content from the transformation  document.getElementById(tableid).appendChild(fragment)}

the part in red (code for Mozilla, Firefox, Opera, etc.) work wellI just dont know what to write (ask) to get those parameter send to the explorer part.....here is the part for firefox that work.. xsltProcessor.setParameter(null, 'langue',langue); xsltProcessor.setParameter(null, 'currency',currency);What to write for ie....I thanks you already.. i sure it almost nothing.. but i miss itMarc-Andre Menard

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...