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

RE: Adam Bosworth Article - what does "direct access" m ean?


adam bosworth access
At 09:52 AM 1/16/2003 -0600, Bullard, Claude L (Len) wrote:
>It is.  Not new news. As the guy who talked long about
>loose coupling, he knows what the tradeoffs are in data
>driving with a syntax unification approach based on
>a hierarchical format.  Path identification should
>go away in the program but how else will we deal
>with selectors?  XML is not object-oriented.
>
>He's right that the code examples are real ugly.
>So the alternatives are?

In XQuery, you can remain loosely coupled while improving the figure/noise 
ratio of your code. The following computes the PE Ratio for IBM:

    let $stock := document("stocks.xml")/stock[@id="IBM"]
    return $stock/price / ($stock/revenues - $stock/expenses)

I do think this is more elegant than the equivalent SAX or DOM. It is no 
more tightly coupled.

Jonathan 


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.