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

Re: nextml

  • From: Norman Gray <norman@astro.gla.ac.uk>
  • To: xml-dev@lists.xml.org
  • Date: Thu, 9 Dec 2010 12:13:10 +0000

Re:  nextml

Greetings,

On 2010 Dec 9, at 05:59, James Clark wrote:

> I much prefer requiring only UTF-8. UTF-8 is enormously more common and a
> single encoding is a significant simplification; the gains from UTF-16 are
> much reduced by the fact that markup almost always uses ASCII characters.
> If an implementation wants to support UTF-16, it should be free to do so,
> but as a requirement it is on the wrong side of the 80/20 line by a long
> way.


...and later, Liam Quinn wrote:

> The most frequent change request I hear is to remove the strict syntax
> requirements and make every XML implementation include some sort of
> HTML-like expert system to do the parsing, automatically "correcting"
> errors like missing quotes off attribute values.  That's not a change
> you're likely to hear from the XML community, where the "draconian"
> error handling, widely misunderstood though it be, is generally
> taken as a given.

I'm puzzled by these remarks, since they appear to be mixing layers, in the sense that both of these concerns seem to be about lexing, rather than the grammar of XML.

If 'XML-bis' were defined using lexer events, with strings defined as sequences of unicode code points, then a JIS-encoded document with missing quotes could be (required to be) handled by the lexer, entirely transparently.  In other words, why is file/wire encoding anything to do with XML?

The current XML spec says that " All XML processors must accept the UTF-8 and UTF-16 encodings of Unicode", but I really don't know why it matters, since the rest of the spec appears to define the XML grammar purely in terms of codepoints, rather than byte sequences (obviously).

All the best,

Norman


-- 
Norman Gray  :  http://nxg.me.uk


  • Follow-Ups:
  • References:
    • nextml
      • From: Amelia A Lewis <amyzing@talsever.com>
    • Re: nextml
      • From: Uche Ogbuji <uche@ogbuji.net>
    • Re: nextml
      • From: James Clark <jjc@jclark.com>

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.