The XML script engine does not support script fragments. This error was probably caused by having a script tag with the language ...

The XML script engine does not support script fragments.  This error was probably caused by having a script tag with the language attribute set to "XML" or the text attribute set to "text/xml" before any other script tag on the page.