Graham
Waplocus It will work but only if the script is on the actual page it will not work from a js file called as a script src as they are not parsed by xtgem they are parsed by the browser
also the quotes must all be on one line in the included files or it breaks the javascript
demo
http://adgj.mw.lt/files/test_1
A random include is
<xt:include file="/folder/*" />
see
http://syntax.xtgem.com/manual/xtgem/default?func=xt_include
random included files can contain anything