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

Re: Strict-Mode and Lax-Mode MicroXML

  • From: Pete Cordell <petexmldev@codalogic.com>
  • To: liam@w3.org
  • Date: 3 Jun 2012 21:01:10 +0100

Re:  Strict-Mode and Lax-Mode MicroXML
On 3 June 2012 20:32, Liam R E Quin <liam@w3.org> wrote:
> On Sun, 2012-06-03 at 10:00 +0100, Pete Cordell wrote:
>
>>     If a < character is not followed by a nameStartChar or a ? character
>>     or a ! character then it should be treated as a < character that has no
>>     special meaning.
> or / of course :-)
>
>>     If a & character is not followed by one of the character sequences
>>     gt; or lt; or amp; or quot; or apos; then it should be treated as a &
>>     character that has no special meaning.
>
> or # presumably.

Good point.  Which is why it's better for the spec to specify the rules 
rather than leave it up to developers to work out the fallbacks,
which has been some of the problems of Postel's law.

> Optimising for hand-authored documents is a mistake - make hand
> authoring easy, but not at the expense of harder machine processing.

For me it depends on the cost-benefit analysis.  Neither the simplest
parser, nor the easiest to hand-author are likely to be optimal.

> An example was the CDATA section, included in XML because the spec
> authors wanted it for examples despite the fact it made parsing
> irregular. Better might have been to include a CDATA element, e.g. by
> saying element names "starting with %" (in SGML terms) were literal,
> <%foo> ...</%foo>.
>
>> I see this as a migration strategy to get away from some of the SGML baggage
>> that is no longer relevant, and maybe in 10 years time we can safely adopt
>> lax-mode for 99% of what developers want to do and have -- in comments etc.
>
> There's no acceptable value of "10 years" for breaking changes.
>
> XML today is used in consumer devices, in computer boot sequences, in
> aircraft and car engines, it's not something that can change; µXML, if
> successful and in use a decade from now, would be in a similar
> situation.

HTML has evolved.  e.g. <script> no longer requires comments to escape
them etc.  Other syntaxes have also evolved, such as programming languages.
Why can't XML evolve?

And if you want uXML in aircraft or engines then you can just insist on
strict mode and just ignore lax mode.

Pete Cordell
Codalogic Ltd
Interface XML to C++ the easy way using XML C++
data binding to convert XSD schemas to C++ classes.
Visit http://codalogic.com/lmx/ or http://www.xml2cpp.com for more info



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