EDITED
Here is a solution that works
Assuming this is your xsl and you are including xsl as you mentioned. In this case I called it include.xsl
. I just call a template called headers that pipes out the javascript reference.
Main XSLT File:
include.xsl
Output:
foo