You should use xsl:output method="text" to generate a .bat file.
The spec doesn't say whether the processor should output line endings as NL characters or as CRLF. It might depend on the target platform, or it might depend on what you asked for in the stylesheet.
Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference