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

xquery & web server in browser

John Snelson john.snelson at oracle.com
Thu Jun 18 22:24:16 PDT 2009


  xquery & web server in browser
Florent Georges wrote:
> Robert Koberg wrote:
>> I was talking about the ability for the XML DB vendors finding it  
>> easier to have XQuery run natively in their DBs as opposed to XSL.
> 
>   Yes, but I wonder why XQuery would be more efficient than XSLT "natively on the server"?
> 
>   I would expect them to be as efficient as the other, excepted that XQuery module system could ease compilation, and on the other hand XSLT facility for grouping and pattern matching that should benefits runtime for those features (opposed to writing them by hand in XQuery.)

The problem is the dynamic dispatch in XSLT - you can't know at compile 
time which template will be invoked where. This is a problem because:

1) You generally can't get accurate static type information across 
template application.
2) You generally can't optimize across template application boundaries.

I think these aren't necessarily as much of an issue has they have 
traditionally been thought as. On the one hand we are seeing a number of 
schema-less XML databases, which rely less on static typing. On the 
other, I think that most XSLT stylesheets wouldn't benefit all that much 
from optimization across template application boundaries anyhow.

John

-- 
John Snelson, Oracle Corporation            http://snelson.org.uk/john
Berkeley DB XML:            http://oracle.com/database/berkeley-db/xml
XQilla:                                  http://xqilla.sourceforge.net


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.