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

RE: XQuery and DTD/Schema?

  • To: "Mike Champion" <mc@x...>,<xml-dev@l...>
  • Subject: RE: XQuery and DTD/Schema?
  • From: "Dare Obasanjo" <dareo@m...>
  • Date: Sat, 6 Jul 2002 17:09:52 -0700
  • Cc: <www-ql@w...>
  • Thread-index: AcIlJfu3RWsqTIoDT5qUhQC4nUkzDAAIxEOr
  • Thread-topic: XQuery and DTD/Schema?

xquery cast
-----Original Message----- 
From: Mike Champion [mailto:mc@x...] 
Sent: Sat 7/6/2002 12:47 PM 
To: xml-dev@l...; Dare Obasanjo 
Cc: 
Subject: RE:  XQuery and DTD/Schema?

>  I've never heard anyone pine for the ability to reject instances from a query because they didn't validate against
> a schema (most use fairly open content models in their storage schemas to make
> sure that trivially invalid instances aren't rejected at storage time), 
 
validate() is poorly named. It is a cast operation for converting arbitrarily constructed XML to a specific named type not an operation meant for validating instances in the middle of a query. It would be extremely wise for the XML Query WG to change its name because I am yet to meet anyone who on hearing the term "validate" doesn't think it is a ridiculous idea until it is explained that it is simply the complex type version of CAST AS. 
 
This can be gleaned from how validate() is used such as in the example I posted to the list a few days ago[0]. 
 
> and I've never heard anyone but Jonathan want the ability to ensure that the results of
> a query are valid instances of a schema without running them through a validator.

That's probably because most people realize that this problem is beyond the ability of computer science to solve and even for decidable cases may be expensive to implement or utilize. 

[0] http://lists.xml.org/archives/xml-dev/200207/msg00116.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.