spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / xml / column61

Data Types Undefined in XML Schema?

Developer News
News Flash: Adobe Has iPhone Workaround
Adobe's Flash 10.1 Goes Mobile (Minus iPhone)
A Salute to Visionary CEOs

Whose concept is it anyway?

A controversial question is also whether it is at all possible to define a type hierarchy that satisfies the document writer, the software developer and the database programmer at the same time: A writer would concede that every type is foremost a string, as every value consists of characters that then get interpreted in different ways. A software developer only sees non-numeric values as strings. In a SQL context the story is slightly different again.

Some people argue that a data type can only be defined by a grammar, maybe using EBNF notation, plus some rules that express constraints, such as "a valid credit card number must have the following checksum." Alas, no prevalent language for specifying these rules and algorithms has emerged.

Recommendations

XML Schema needs a major overhaul, especially in the data type section:

  1. Data types need to be defined by validation grammars and rules, not inheritance trees.
  2. A language for validation algorithm for data types needs to be defined.
  3. Type libraries need to be made pluggable, as they are in RELAX NG.
  4. A registry for type libraries is needed.

Without these much-needed improvements, XML Schema might become the most cumbersome or the most ignored specification in the XML suite. Various data type library efforts are underway, most in the RELAX NG camp. Watch this space for relevant coverage.

Acknowledgements

This critical view on XML Schema datatypes was inspired by a more opinionated piece on the same topic.


Produced by Michael Claßen

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Building a Banking Application Home Page with OOP · Mixing Scripting Languages · Review: phpFox, a Social Networking CMS with all the Bells and Whistles
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Enterprise 2.0: Social Networking in the Cloud · BroadSoft Marketplace Hastens Pace of Telephony Innovation · Review: HTC Hero for Sprint

URL: http://www.webreference.com/xml/column61/2.html
Created: Aug 05, 2002
Revised: Aug 05, 2002