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

Re: Re: XML5

  • From: Liam R E Quin <liam@w3.org>
  • To: Henri Sivonen <hsivonen@iki.fi>
  • Date: Thu, 16 Dec 2010 20:45:39 -0500

Re:  Re: XML5
On Thu, 2010-12-16 at 15:53 -0800, Henri Sivonen wrote:
> On Dec 16, 2010, at 09:29, Liam R E Quin wrote:
> [...]
> 
> > Error correction is perfectly OK as long as the API
> > provides a way for the application to determine that the input was
> > not well-formed XML.
> 
> I think it's clear that that's not what the spec intends to say,
The XML spec is careful not to talk about documents that are not
well-formed; once a document has been determined not to be well-formed,
the *only* thing the XML spec can say about them is that you
can't claim they *are* well-formed.

It's a hole through which a moderately large truck could be driven.

> although the letter of the spec can be met if you creatively interpret
> "MUST NOT continue to pass character data and information about the
> document's logical structure to the application in the normal way" to
> be met if you switch from the normal SAX ContentHandler interface over
> to an identical set of callbacks under, say, an interface called
> BrokenContentHandler.
I would indeed consider that to meet the letter of the spec.

The intent was to try to avoid the need for this sort of shenanigan in
XML parsers by encouraging authors to make well-formed XML in the
first place.  *Outside* of the Web browser world, it largely worked.

[...]

> > So, you don't need to call it a new version of XML, and you don't need
> > a new version of XML.
> 
> I'd be fine with describing XML5 as a new parsing spec for XML 1.0 and
> not a new version of the language itself.

Better, call it a new library for handling malformed XML, in the spirit
of HTML Tidy.

I would not want to imply that software in other situations needs to
process broken XML documents.

What sort of XML document, other than RSS or XHTML, do you encounter
that leads to wanting/needing this?  An XML editor is one good and
obvious example, as if the editor can't load the document, the
author might have a hard time fixing the problem.

Liam

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org www.advogato.org



[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.