For example:<H1Xmlns = "">Dancing
According to W3C rules, if the namespace except xmlns: XSL is specified during XSLT conversion, when <XSL: element is used to generate a new node, the namespace is automatically added.
It is estimated that the "Other Namespaces" also include the xmlns of <HTML>, so that we can add a sentence on <XSL: stylesheet>.
Xmlns = "http://www.w3.org/1999/xhtml", and remove the xmlns on the <HTML>, there is no problem
Practice found that the above method will still lead to old problems. After some searches, we found the final solution on a foreigner's website.
First remove all xmlns = "http://www.w3.org/1999/xhtml", add an XSL: Test directly after the XSLT document <XSL: template match = "/">
The content is as follows:
<XSL: Text disable-output-escaping = "yes"> <! -- [CDATA [<! Doctype HTML public "-// W3C // dtd xhtml 1.1 // en" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <HTML xmlns = "http://www.w3.org/1999/xhtml">]> </XSL: text> <br/> Add <br/> <XSL: Template> <br/> <XSL: Text disable-output-escaping = "yes"> <! [CDATA [</ptml>] --> </XSL: Text>