[Bug 2519] Byte-order-mark is compulsory in XML for UTF-16

http://www.w3.org/Bugs/Public/show_bug.cgi?id=2519





------- Additional Comments From davidc@nag.co.uk  2005-11-14 11:41 -------
(In reply to comment #2)
> While these two points are true, they do not negate the requirement in
> section 4.3.3 of Extensible Markup Language (XML) 1.0 (Third Edition)
> and Extensible Markup Language (XML) 1.1. The word MUST is used.

This is true of complete documents, but XSLT also has a  requirement
to support fragments, for example multiple top level elements. These fragments
are often combined by some post process and having the bom there may well be
inconvenient.

this is essentially the same issue as the xml declaration. An XML declaration is
similarly mandatory for an xml document if the encoding is not utf8/16 and xslt1
mandated that it be added. This turned out to be too restrictive and xslt2
allows  people to request that it be omitted, even though this may make the
result not well formed, on the assumption that they know what they are doing...

Received on Monday, 14 November 2005 11:41:29 UTC