Re: XSLT in Mozilla

Jonas Sicking <[email protected]>
Newsgroups gmane.comp.mozilla.devel.layout.xslt
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
This is the first thing that jumps out as wrong to me:

>	if (isNav)
>	{
>		//for mozilla/netscape
>		var processor = new XSLTProcessor();
>		var xslt = document.implementation.createDocument("", "", null);
>		xslt.load("nodestats.xsl");
>		processor.importStylesheet(xslt);
> 
>		var src_doc = document.implementation.createDocument("","", null);
>		src_doc.load("statsreport.xml");
>		var result = processor.transformToDocument(src_doc);
>	}


You need to do these loads synchronously just like you do in IE. Setting 
.async = false before calling .load should work iirc.

/ Sicking
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.