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

Does schema fascism help or hinder interoperability?


what does schema mean

In a message dated 15/05/02 02:04:32 GMT Daylight Time, amyzing@t... writes:


The big advantage of type-aware programming, the b&d languages, is that
they *enforce* types.  Pass a long to a Java method that takes int
without casting, and it won't even compile.  You have to cast, which
means that you have to think about why the parameter is typed int, but
the value is long, and handle, in code, the cases when the value is of
greater magnitude than the parameter.

With XML Schema, you get to this a *lot*.  Instead of types helping you
not to make errors, they help you make more.  Does your language
differentiate between positiveInteger and nonNegativeInteger?  No?  What
a pity!  You have to.  Does your language understand gHorribleKludge
natively?  Get on it, then.  And on, and on. 


It seems to me that Amy has raised an immensely important question. What will be the effect of widespread use/imposition of XSD/PSVI on interoperability?

What are the effects of different languages having very different type systems on the impact of XSD/PSVI on data interchange and interoperability?

Will it complicate and lengthen programming tasks? Or improve efficiency?

How, for example, will the use of Java with XSLT 1.0 compare with the likely future use of Java with XSLT 2.0 when both type systems are floating (forgive the pun) around? Will it be more efficient or significantly harder?

Is this a temporary perceived difficulty or a fundamental one? Will libraries to cast from one type system to XSD/PSVI and (potentially) back out to another type system at the other end solve the problem? For some languages only? At what cost in efficiency? Or are there fundamental issues which will mean that only certain languages may be used with XSD/PSVI?

Or does it mean that, for certain uses, XSD/PSVI will de facto be imposed?

Or is it possible that we may see an entirely new programming language, POX (PSVI over XSD) perhaps, as the only programming language which can fully handle the type system?

Andrew Watt

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.