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

RE: Early Draft Review: XQuery for Java (JSR 225)


java xquery
> Burak Emir wrote:
> 
> > I just cannot believe that one can seriously want to repeat 
> the IMHO biggest design error of JDBC, namely to pass *strings* to 
> the library.
> > 
> > This effectively kills all possibilities of static (compile-time) 
> > verification of queries, like syntax checking (let alone types).
> > 
> > flabbergasted...
> 

Burak, what kind of interface did you have in mind? Is it the "embedded DML"
kind of interface where query language statements are defined as an
extension to the basic programming language (i.e. a sublanguage)?

There were many systems that used that kind of language binding in the 1970s
and 1980s, typically with COBOL and PL/I: the Codasyl DML was based entirely
on this model. When relational systems became popular in the mid 80s
embedded SQL was used with C, but it was overtaken in the market by
"call-level interfaces" that supplied DML statements as strings.

It's not entirely clear to me why the call-level interfaces won the battle.
I suspect it has something to do with the inconvenience of preprocessing;
perhaps something to do with the difficulty of different standards groups
agreeing on a hybrid language (I seem to remember great political battles
with the Ada/SQL binding); and something to do with the sheer variety of
programming languages that people want to use. Another reason for the
success of call-level interfaces, notably ODBC, was the desire to avoid
committing a client application to a particular vendor's database product at
compile time: there are many benefits in late binding.

As a matter of interest, there is continuous pressure (which the WGs have so
far resisted) for a dynamic XPath binding to XSLT - that is, the ability for
an XSLT stylesheet to construct XPath expressions from run-time strings. I
am not in the slightest flabbergasted by this requirement, it seems very
natural to me.

In the case of a Java/XQuery binding, defining the query language as a
sublanguage of Java seems hardly viable. The place for that is in some kind
of higher level tool, e.g. a JSP tag library, or an XML pipeline processing
language.

Michael Kay 


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.