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

RE: XQuery and DTD/Schema?


RE:  XQuery and DTD/Schema?
> -----Original Message-----
> From: Uche Ogbuji [mailto:uche.ogbuji@f...] 
> Sent: Wednesday, July 03, 2002 1:48 PM
> To: Jonathan Robie
> Cc: Simon St.Laurent; xml-dev@l...
> Subject: Re:  XQuery and DTD/Schema? 
> 
> a) There is no reason it has to be static.  

  i.) Static types improve performance and help catch errors in many
cases. However, the XQuery type systemin some cases costs more than the
benefits it brings, 

 ii.) If you don't like static types then don't use a schema or static
type related constructs. The problem however is that if static types are
made mandatory then queries which may work such as 

	/foo[@bar < 5] 

will fail at compile time which may be rather unsatisfactory. 
 
> so how do I 
> express my dynamic constraints in an XQuery function definition?

What dynamic constraints would you like to express? 
 
> b) There is no reason it has to be named types.  

You need a mechanism to specify constraints on the arguments to various
functions and operators. Whether you decide to name them or keep them
anonymous doesn't make much of a difference although I'd prefer named
types for usability reasons. 

> 
> c) Even if one were to say "XQuery requires static, named 
> types"   Why mandate that these come 
> from the PSVI?

This is not mandated. This is why there is a mapping from the PSVI to
the XQuery data model in the first place. 


-- 
PITHY WORDS OF WISDOM 
Lynch's Law: When the going gets tough, everyone leaves.

This posting is provided "AS IS" with no warranties, and confers no
rights. 





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.