Jump to content

XML parameter send to xsl


menardmam
 Share

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...