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

Re: bohemians, gentry


Re:  bohemians
I've really been careless with my attributions lately.  I'll try to do better.

Alaric B. Snell:

> > More generally,  the more you rely on the "data types"
> > (very broadly defined) to define and process the XML, the less useful it
> > will be for
> > anyone who doesn't use the same semantics, type sytstems, language
> > bindings,
> > etc. as you do. 
> 
> I don't think so. Adding more restrictive typing doesn't change the data in 
> the documents,

False.  Data typing most certainly changes the data in the document.  This is 
not automatically a bad thing.


> it just makes automated processing easier.

Debatable.  But even if granted, the point is that the automation is almost 
invariably misguided because, as I've said many times, the data types people 
use very rarely have correspondence to their real-world analogues.  And the 
carelessness that strong typing tends to encourage is a very common cause of 
integration and maintenance problems.


> Instead of allowing 
> a date field to contain "yesterday", "my birthday", "1/2/2002" (note the 
> ambiguity; 1st feb or 2nd jan) and so on you restrict it to a specific date 
> type written "YYYY-MM-DD", and the increased rigidity makes it possible to 
> write code that can be shown to handle all the cases.

This can be done without static typing.  A generic constraint system does the 
job as well, and allows the developer to define constraints that approximate 
the real world.  Proof of correctness does *not* require static typing, if 
that's what you're driving at here.

In any case, you seem to miss the point.  As I said to Norm:

"""
I have no problem with data typing qua data types.  I do object to

* The bias towards static types

* The lack of modularity in W3C efforts to incorporate data typing into XML 
technologies
"""


-- 
Uche Ogbuji                                    Fourthought, Inc.
http://uche.ogbuji.net    http://4Suite.org    http://fourthought.com
Tour of 4Suite - http://www.xml.com/pub/a/2002/10/16/py-xml.html
Proper XML Output in Python - http://www.xml.com/pub/a/2002/11/13/py-xml.html
RSS for Python - http://www-106.ibm.com/developerworks/webservices/library/ws-p
yth11.html
Debug XSLT on the fly - http://www-106.ibm.com/developerworks/xml/library/x-deb
ugxs.html



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.