xslt transform in mozilla
"johns221b" <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.layout.xslt |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <[email protected]> |
Here is the sample code of xslt tranformation used for IE browsers.
Uing xslt processor and using addobject and addparameter.
Want to know the best code for Mozilla for achieving the same.
thanks
John Chacko
var ClientXML = new ActiveXObject("Microsoft.XMLDOM.4.0") ;
ClientXML.async = false;
ClientXML.load("Books.xml");
var ClientXSL = new ActiveXObject("MSXML.FreeThreadedDOMDocument.4.0")
;
ClientXSL.async = false ;
ClientXSL.load("Books.xsl");
var xslTemplate=new ActiveXObject("Msxml2.XSLTemplate.4.0") ;
xslTemplate.stylesheet=ClientXSL ;
var xslProcessor=xslTemplate.createProcessor ;
xslProcessor.input=ClientXML ;
//Generic Class instance added as an object
xslProcessor.addObject(FnObj, "urn:Functions" );
//Adding Parameters to processor
xslProcessor.addParameter("ParamName",ParamValue)
xslProcessor.transform();
document.write(xslProcessor.output);