Re: Removing XML decl (Re: validator/htdocs header.html,1.50,1.51)

On 20 Jul 2007, at 11:51, Sierk Bornemann wrote:
> header.html:
> <!--#if expr="${IELegacy}" --><!--#else --><?xml version="1.0"  
> encoding="utf-8"?>
> <!--#endif --><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
>  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

If there is no XML declaration, then XML parsers, IIRC, are supposed  
to assume XML 1.0 and UTF-8 or -16 (depending on the BOM, if present).

What's the point of adding the XML declaration under any  
circumstances short of changing output language or encoding?

-- 
David Dorward
http://dorward.me.uk/
http://blog.dorward.me.uk/

Received on Friday, 20 July 2007 13:52:45 UTC