I'm going to have to install Mozilla to take a look at what's lacking. Is the attachment in this post still the latest (maybe with the exception of  ?
One guess I had... It seems like maybe the XSLT parser is working at the same time as the XHTML parser in Mozilla. I'm wondering if the js include statement is working in the stylesheet. One thing you might try, and I'll try to test this myself, is making sure the javascript is valid XML / XHTML, that might require wrapping it in (let's see, what's the syntax)
[!CDATA (don't quote me on that, it's something similar that kind of makes the XML parser skip over it)
The other thing, is once that works (no errors, but it's wrapped in CDATA), but if the js still doesn't work right in the stylesheet. Try including it in a different way, like
<xsl:include/> Instead of the typical HTML include directive.
Just looking at the list of things that didn't work, it looks like a lot of the js isn't being included somehow into the stylesheet rendered xml.
Like I said, I'll try to test this later, but it won't be until tonight (EST)
Chris