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

Re: Sweet nostalgia


corrupt html file
Maybe it's time to trot out the ISO definition of consensus: "the 
absence of sustained opposition". Harder to achieve than a majority, of 
course, but it may sometimes get better results by forcing the 
engagement of two opposing sides until it is achieved.

Hmm, just like the well-formedness constraint! :-)

This is interesting, from Sean McGrath on the diveintomark page:

> Programming languages that barf on a syntax error do so because a partial executable image is a useless thing. A partial document is *not* a useless thing. One of the cool things about XML as a document format is that some of the content can be recovered even in the face of error. Compare this to our binary document friends where a blown byte can render the entire content inaccessible.

I was pondering the other day in this context about the distinction 
between text and binary, or more particularly between a markup language 
and a file format. Perhaps part of the problem is that Rec-XML is a 
little schizophrenic <http://www.w3.org/TR/REC-xml#sec-documents>:

> A data object is an XML document if it is well-formed ...

> A textual object is a well-formed XML document if ...

The draconians know that "well-formed XML document" and "XML document" 
are identical: if it's not well-formed, it's not XML! The liberals 
argue: then why is the superfluous term "well-formed" even used? No-one 
talks about a "well-formed JPEG file": it's either correct or it isn't.

I suspect the reason goes back to the fact that XML comes out of HTML 
and SGML, which are markup languages not file formats. In practice 
there's no such thing as a "corrupt HTML file"; it's just a question of 
how the browser will interpret any given soup. XML tries to impose 
file-format type restrictions but expresses them in markup language 
terms. I guess if the draconian position only entered the text after the 
overall architecture of the document had already been written, that 
would be some kind of historical explanation.

Feel free to correct me!

Greg.

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.