[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Tranformation failed with Saxon for "Illegal HTML]


Subject: Re: [xsl] Tranformation failed with Saxon for "Illegal HTML]
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 28 Jul 2006 17:35:40 +0100

> In My XML file unfortunately come characters like the one in the tag
> below:

I assume that that means that theer are utf8 characters in your input
one can never be sure with mail as it may have been re-encoded between
the point that you sent it and the point that it got here. Actually your
mail claimed to be latin-1
Content-Type: text/plain;charset=iso-8859-1
and if your XML file claimed to be the same encoding then you would get
the error that you stated, as then the two bytes representing the
characters would be interpretted as two characters, the first being an
accented A the second being character 128 which is an error.
If your input is coming from a web server check the encoding specified
in its http headers. If it os coming from the filesystem, check the
encoding specified in the file.

David


Current Thread
Keywords
xml