I have an XSLT file that writes the HTML for a website. I include the javascript like so:
1 | <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" /> |
But if I do that, it breaks the rest of the page. Instead, I have to include the javascript files like so:
1 | <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js">   </script> |
So that it does not break. Can anyone tell me why this is? It does not happen with included CSS files, just javascript.
Using cocoon to transform the files with Saxon 9.