XSLT Server Extension problem with ISO-8859-1 encoding

We tested Tamino XSLT Server Extension on Tamino on an xml file with encoding ISO-8859-1. XSLT Server Extension returned an exception messages like this:
org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0xbf) was found in the element content of the document”.

Using the extension debugger gave the following debuginfo: Die XML-Deklaration in the inputfile was missing (encoding).
Obviously it loses the encoding info. Any hint how to avoid this?
Andy Luethi


I think the solution depends on the used transformation processor. I had no problems using xalan. The error message sounds like something MSXML does – it simply drops the encoding and assumes you know the data comes in utf-16 (if I remember right).
I do not know about saxon if you use that one.

Please repost in “PassThru Servlet, Transformation, XSLT” as I consider this an XSLT issue rather than SXS. I am sure the moderator there can help you. :slight_smile:


please see answer http://tamino.forums.softwareag.com/viewtopic.php?p=10959

I think it should here, too.