RE: [xsl] SAXON and UTF-8

Subject: RE: [xsl] SAXON and UTF-8
From: Tony Graham <Tony.Graham@xxxxxxxxxxxxxxx>
Date: Thu, 27 Sep 2001 18:14:25 +0100
Michael Kay wrote at 27 Sep 2001 17:27:51 +0100:
 > My reading of the XML spec is that it expects to find BOM only in UTF-16
 > files. I can't see any total prohibition of a BOM in a UTF-8 file, but the
 > spec certainly seems to assume that they won't occur. If anyone thinks
 > otherwise, I'd like to see evidence from the XML specification, which is the
 > only definitive source.

You are required to have the BOM with UTF-16, but there's nothing that
says that you can't have a BOM with UTF-8.

Appendix F in XML 1.0 2ed provides an example of the UTF-8 BOM.


Tony Graham
XML Technology Center - Dublin        mailto:tony.graham@xxxxxxxxxxxxxxx
Sun Microsystems Ireland Ltd                       Phone: +353 1 8199708
Hamilton House, East Point Business Park, Dublin 3            x(70)19708

 XSL-List info and archive:

Current Thread