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

E4X and XQuery

Brett Zamir brettz9 at yahoo.com
Sun Jul 25 01:29:57 PDT 2010


  E4X and XQuery
  Although we were talking about a lack of interest in XML in the web 
community, I found it rather heartening to see some good  participation 
in the interest of bringing E4X support to Chrome's V8 engine (as E4X is 
already in Firefox), with the intention of getting critical mass to lead 
to adoption by the other browsers. V8 has indicated in theory their 
willingness to integrate good code, as long as it is produced by a 
third-party: http://code.google.com/p/v8/issues/detail?id=235#c19 
Several there have already mentioned being willing to donate to try to 
make it happen, including with the hope that if more browsers besides 
Mozilla support E4X, there may be potential to see it become standard 
across browsers.

What's the connection to XQuery?

As both I and Rob Koberg have now mentioned, jQuery comes close to 
simulating XQuery in some regards, and with E4X in the picture, this 
becomes even more possible.

While those familiar with E4X know that it can evaluate expressions to 
produce dynamic XML content, they might not have given thought to 
simulating XQuery-like features.

I started a wiki page earlier on how JavaScript functions can be used 
with E4X to simulate iterating loops or sorting inside XML content, 
using inline functions to allow multi-line statements inside literals, 
or other template-like and XQuery-like syntax: 
https://developer.mozilla.org/en/E4X_for_templating .

Brett




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