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

Re: Notations for datatypes


Re:  Notations for datatypes
> Rick Jelliffe reminded me in private email that he had proposed notations 
> to the W3C XML Schema WG as a way of declaring data types. Let me ask a few 
> questions about a notation-based design for declaring datatypes:
> 
> 1. How do you declare the types of attributes?
> 2. How do you define common libraries of data types using notations that 
> are shared across schemas?
> 3. How would using a syntax based on notations simplify the design of the 
> schema language as a whole - what difference would it make?

Well, I think there are many things that answer #3 in favor of notations, but 
there is at least one that I think is extremely obvious and probably would be 
accepted by most viewpoints.

Using notations for data types leaves them within the information layer 
defined strictly by XML 1.0, and thus means they are accessible to most 
generic XML processing tools, including the two most popular: DOM and SAX.  It 
would obviate the pernicious PSVI, and more objectively, remove the need for 
out-of-band mappings of XML information items to additional notations.

Of course, all that having been said, it would continue to be unavailable in 
XPath/XSLT, but then XPath/XSLT 2.0, rather than loading down those languages 
with a despicable level of complexity, could simply add simple DTD construct 
access tools to the library, and thus enable data type processing as well as 
an entire class of other useful constructs that notations enable.

I still don't like the idea of baked-in static/structured type libraries, but 
it would be easier for this mess not to affect me if the notation path were 
taken.  My guess is that the problem with notations for attributes was the 
blocker.


-- 
Uche Ogbuji                                    Fourthought, Inc.
http://uche.ogbuji.net    http://4Suite.org    http://fourthought.com
Apache 2.0 API - http://www-106.ibm.com/developerworks/linux/library/l-apache/
Python&XML column: Tour of Python/XML - http://www.xml.com/pub/a/2002/09/18/py.
html
Python/Web Services column: xmlrpclib - http://www-106.ibm.com/developerworks/w
ebservices/library/ws-pyth10.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.