Using java, i transform HTML to XML. Does encoding type we mention in the XSL file play a role? Because after transformation, there is duplication of content in the XML file where in content gets append in the last and making the file invalid. Not able to replicate this issue again. This happens once in a while.
1 Answer
Nope, the encoding of the xsl itself does not have any connection to the encoding of the source xml or the encoding of the target xml, unless there is a bug in the transformer.
Non the less the the xsl may print characters that are not printable in the target xml's encoding in which case your target xml would contain invalid characters (or the transformer throws an exception I'm not sure).
Finding a solution to your exact problem is rather impossible with this amount of information.
iso-8859-1as encoding type, while the content contains non-ASCII characters.