[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: IE5.0 does not conform to RFC2376

  • From: Chris Lilley <chris@w...>
  • To: Tim Bray <tbray@t...>
  • Date: Mon, 05 Apr 1999 02:39:05 +0200

Re: IE5.0 does not conform to RFC2376


Tim Bray wrote:
> 
> At 03:24 PM 4/4/99 +0200, Chris Lilley wrote:
> > But it need not autodetect, in fact, autodetection
> >is a bad thing. I was not suggesting autodetection, quite the converse.
> >
> >Rather, in the absence of an explicit MIME charset parameter, it should
> >use the encoding declaration. If there is none, then the document is in
> >UTF-8 or UTF-16 and the XML spec tells you how to determine which. [1].
> 
> Just a terminology thing; I think when we say autodetection, we are
> talking about using the combination of the first few bytes and the
> encoding declaration, as described in app. F  of the XML spec. 

Thanks for pointing out this source of terminological confusion. No, I
was not meaning that.

I was meaning autodetection in the sense of reading a whole bunch of the
text and making assorted guesses based on frequency analysis and the
like. In other words, automatic detection based on unlabelled content. I
believe that this is a bad thing, because there is always the
possibility (quite high) of hgetting it wrong.

The encoding declaration, on the other hand, is not autodetection in
that sense, it is a label. A very small amount of autodetection has to
be done in order to be sure that the label has been read, that is all
(ie, is this UTF-16 or is this an encoding where ASCII is represented as
ASCII).

> I think
> (and I thought Chris thought) that this is a *good* and necessary thing,
> if only because lots of XML documents are read in other ways than via
> http, and because lots of times the web server simply doesn't/can't
> know about the internal arrangements of some XML resource.

Yes, this (rewading the encoding declaration) is a *good* thing, with
the proviso  that I am talking about the encoding declaration. I don't
consider this autodetection, in thre same sense that reading <?xml
version="1.0"?> is not autodetection of the version.

--
Chris

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.