In Firefox 3.6a1, the transformation fails with
[Exception... "Component returned failure code: 0x8000ffff
(NS_ERROR_UNEXPECTED) [nsIXSLTProcessor.transformToDocument]"
nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)" ... ]
The error seems to be caused by "onload" on "body" in the XSL - if I
take the onload attribute away then the transform succeeds.
But if I save the WML and XSL to disk, and add in the appropriate xsl-
stylesheet PI, the transformation succeeds.
Is this a known issue, or something I should raise a bug on? The
nearest bugzillas seem to be
https://bugzilla.mozilla.org/show_bug.cgi?id=386856
https://bugzilla.mozilla.org/show_bug.cgi?id=493585
but neither seems an exact match.
Matthew
File a bug, but explain whether the code worked in earlier versions of
Firefox. And a simple test case can help, if you can reproduce the
problem with transformToDocument outside of your extension code.
--
Martin Honnen
http://msmvps.com/blogs/martin_honnen/
I seem to recall a bug about this going by recently, but can't seem to
locate it...
-Boris