Re: [xsl] Xalan Encoding Problems

Subject: Re: [xsl] Xalan Encoding Problems
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 29 Oct 2001 17:31:39 GMT
> Xalan dies 
> immediately because the it cannot read the encoding 

XML processors are not obliged to understand any encodings other than
utf8 and utf16, although most do understand latin 1.

> In addition, the author placed the copyright symbol which is 
> not part of the ASCII set and Xalan also dies on this.

that's just presumably the same error. If it read the file not knowing
the encoding then any characters are likely to give an error.

> The barcodes need this encoding 
> otherwise it cannot product the veritical lines.

This can't be the case. Once the file has been read the encoding is not
even known, so you must be able to re-encode the file as utf8, or even
ascii. You can always re-encode an xml file to utf8. You can only
re-encode it to ascii if it only uses ascii characters in element and
attribute names. (non-ascii characters in content can be encoded as
&#...;

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread