Re: xslt transform in mozilla

Jonas Sicking <[email protected]>
Newsgroups gmane.comp.mozilla.devel.layout.xslt
Message-ID <[email protected]>
You can read about our XSLT APIs and other XSLT related information here:

http://developer.mozilla.org/en/docs/XSLT
http://developer.mozilla.org/en/docs/Using_the_Mozilla_JavaScript_interface_to_XSL_Transformations

Hope that helps!

/ Jonas

johns221b wrote:
> 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);
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.