This is a demo on how to obfuscate your xsl. It isn't very secure though.
To do this you need the Script Encoder from Microsoft.
Here is the input file.
Here is the output file.
To obfuscate you just need to
screnc.exe helloworld.htm helloworld.html
Check out the utilities section for a little tool (xml to js) to make it easier.