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

Re: Postel's law, exceptions


Re:  Postel's law
HTML parsers don't necessarily "fix" tag soup when they do their best to
render it. In the XML case, the well-formedness (w-f) constraint
requires that at some point errors are actually fixed. So the
application of "Postel's law" seems to be about WHERE this happens.

One of the problems with Tim Bray's (excellent) examples is that they're
examples of corruption. The well-formedness constraint is nowhere near
sufficient to catch all corruption; also, it's relatively easy to apply
heuristics which make w-f unnecessary (for that). For instance, if
there's at least one closing tag at the end

  <trade>
   <ticker>IBM</ticker>
   <amount>100</amount>

then we don't have the main problem, even though w-f is still violated.
Adding the second missing tag still wouldn't guarantee whether or not
the figure used to be "£100" but the £-sign was thrown away by an
intermediate 7-bit transport.

It seems to me that the "woman in Baghdad" example is a key one. Do we
expect XML to be written (i) by humans and (ii) in situations where they
can't check w-f before shipping it out, or can, but their checker is
broken? If yes, it still doesn't mean that the check can't be done at
the ingress to the "XML-strict part of the system" somewhere else, but
it does mean that the original author may not be available to fix it up.
There may, however, or may not, be a non-realtime feedback loop that is
regarded as sufficient. Isn't this a business-workflow issue rather than
one of technical interoperability?

Notably, however, the only reference to "human" in the Goals section of
Rec-XML <http://www.w3.org/TR/REC-xml#sec-origin-goals> is that "XML
documents should be human-legible": not -writable.

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.