I try convert HTML to XML. My XSLT: I try convert HTML to XML. My XSLT: I try convert HTML to XML. My XSLT:

XSL Output declaration

40 Views Asked by At

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">
0

There are 0 best solutions below