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

=?UTF-8?Q?Re=3A_=5Bxml=2Ddev=5D_Should_XML_applications_follow_Postel?==

  • From: Rick Jelliffe <rjelliffe@allette.com.au>
  • To: John Cowan <johnwcowan@gmail.com>
  • Date: Fri, 20 Apr 2018 15:18:17 +1000

=?UTF-8?Q?Re=3A_=5Bxml=2Ddev=5D_Should_XML_applications_follow_Postel?==
So all that means is that Postel's law can confict with Goal 6?  Who says is should not? Just another tradeoff, surely?

Still not very convinced, sorry.  If someone at the other end does not implement reading PIs, why cannot you use the same logic that they may have omitted to implement some elements, and therefore you should avoid using elements as much as possible too?   Or does the principle apply to optional elements: that for robustness we should avoid generating elements or attributes that are optional in the schema (and PIs, if they are optional in that situtation too)?  I don't think that counts as robustness, unless perhaps you have duplicate elements (think of MARC library format) from successive generations of aggregation of prior standards. 

I think you have flipped back to humans writing, not machines generating, haven't you?.  Actually, for behind-the scenes work on large pipelines made by different developers of varying quality discipline, I have frequently found it prudent to normalize the XML to use only ASCII for direct characters.  Developers so commonly get encoding wrong, and some APIs positively make it hard to do things right, in particular in the common case where you need to do some text massaging before XML parsing and so you need to check which encoding is being used in your code.  I think that is an application of Postel's principle.

Surely the kind of readable you are talking about  is determined by the language skills of the developers, not the language of the text of the document?

Regards
Rick





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