Re: importStylesheet changes in 1.9 ?

Jonas Sicking <[email protected]> Mon, 26 Nov 2007 16:37:28 -0800
Newsgroups gmane.comp.mozilla.devel.layout.xslt
Message-ID <[email protected]>
Fabrice Desré wrote:
>  Hello,
> 
>  When porting a FF 2.0 to xulrunner 1.9, I can't get basic XSLT 
> functionnality to work anymore. the nsIXSLTProcessor.importStylesheet() 
> call is failing with the following message :
> "Component returned failure code: 0x80600001 
> [nsIXSLTProcessor.importStylesheet]"  nsresult: "0x80600001 (<unknown>)
> 
> Here's a very simple function I wrote to isolate the problem.
> 
> function init() {
> try {
>   var src = document.implementation.createDocument("", "", null);
>   src.async = false;
>   src.load("http://localhost/~ifda7415/index.xml");
>   var xsl = document.implementation.createDocument("", "", null);
>   xsl.async = false;
>   xsl.load("http://localhost/~ifda7415/launcher.xsl");
>   xsltproc = new XSLTProcessor();
>   xsltproc.importStylesheet(xsl);
>   var res = xsltproc.transformToFragment(src, document);
>   dump(res);
>   } catch (e) { dump(e)}
> }
> 
> I'm sure the issue is not with the index.xml and launcher.xsl files, 
> since running xsltproc (from libxslt) with the same URLs works fine, and 
> this also works with FF 2.0

I would actually think the problem is in launcher.xsl. It's quite 
possible that libxslt and our xslt processor are differently strict 
about certain errors in the stylesheet. Unfortunately our error 
reporting sucks bigtime so it doesn't give you much help as to what it's 
refusing to accept.

Try minimizing the stylesheet until things work and then add things back 
and see what's making FF to fail.

However it is entirely possible that this is due to a bug on our end. So 
please let us know what you find out.

Best Regards,
Jonas Sicking
_______________________________________________
dev-tech-xslt mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xslt