The xsl:output element lets you control many things about serialization:
method - xml, html, text, or a QName
version - The XML version
encoding - The encoding to use while serializing.
omit-xml-declaration - "yes" or "no" - omits the <?xml pi
doctype-system/doctype-public - Controls the <!DOCTYPE declaration
indent - Controls pretty-printing of the XML.
media-type - The MIME Type
cdata-section-elements - Elements whose contents should be wrappped with <![CDATA[ ]]>.
Example:
<xsl:output method="xml" omit-xml-declaration="yes" encoding="UTF-8"/>