The task seems to be pretty easy: how to include a Javascript file in xml-document so that at least Opera and Firefox could actually parse it and execute the code?
Or for external javascript:
Works in Firefox and Opera.