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?
Add a script stating XHTML namespace, it will run just fine.
<xhtml:script xmlns:xhtml="http://www.w3.org/1999/xhtml" src="file.js" type="application/javascript"/>
See also http://www.ibm.com/developerworks/xml/library/x-ffox3/
2.1m questions
2.1m answers
60 comments
57.0k users