[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

XQJ (JSR 225)

Florent Georges lists at fgeorges.org
Thu Jun 25 14:53:04 PDT 2009


  XQJ (JSR 225)
Michael Kay wrote:

> The difference between them is that XQPreparedExpression
> contains a compiled expression or query, whereas XQExpression
> merely holds the dynamic context for executing an expression or
> query - despite its name, the expression to be evaluated is not
> held in the XQExpression object, but is always supplied
> dynamically.

  Unfortunately, that's what I thought.

> Whenever I complained about the design (or even the
> nomenclature) I was told it would all seem completely intuitive
> to people who know JDBC.

  That is what I was afraid to hear.  While this is quite true,
it can also be stated as "we kept the same bad design as JDBC, in
that regard."

  I wonder why the design was not based on the JAXP API for XSLT
rather than on JDBC...  There are stuff to be improved over
there, sure, but the concept of compiled object (Templates) and
its representation augmented with dynamic context for evaluation
(Transformer) is very clear.

> Unless you need the portability, I recommend Saxon's s9api
> interface.

  Yep, when I can afford using it, that's what I do usually.  If
well encapsulated, it is not hard to change implementation
anyway.

  Regards,

-- 
Florent Georges
http://www.fgeorges.org/






















      




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
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-2007 All Rights Reserved.