I need to output declaration to XML like
<?xml version="1.0" encoding="UTF-8"?>
I try convert HTML to XML. My XSLT:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output
method="xml"
encoding="utf-8"
omit-xml-declaration="no"
indent="yes"/>
<xsl:template match="/">
</xsl:template>
</xsl:stylesheet>
But this script gives the following text:
<?xml version="1.0">