xslt - Missing <?xml version="1.0" encoding="XXXXX"?> after transformation -
I am facing a problem after the conversion of an XML file and after saving it, i mean the XML file Can not find the top tag & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt;
.
Below is my XSLT file:
& lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Xsl: stylesheet xmlns: xsl = "http://www.w3.org/1999/XSL/Transform" version = "1.0" & gt; & Lt; Xsl: output method = "xml" indent = "yes" encoding = "UTF-8" omit-xml-declaration = "no" /> & Lt; Xsl: template match = "*" & gt; & Lt; XSL: Copy & gt; & Lt; Xsl: copy-of select = "@ *" / & gt; & Lt; XSL: implemented-templates / & gt; & Lt; / XSL: Copy & gt; & Lt; / XSL: Templates & gt; & Lt ;! - ... - & gt; & Lt; / Xsl: stylesheet & gt;
I think that due to errors due to the absence of this tag "an invalid character was found in the text content."
Can someone help me find a solution? thank you in advanced.
Most likely, the code that creates a change, where you need to look. Mostly XSLT lbs have a switch that tells you whether or not to output the XML declaration, since XSLT can be used to output some.
An illegal character error is most likely that it likes. A feature found in text content that is not valid for UTF 8.
Comments
Post a Comment