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

XQuery and Item Orientation

Ghislain Fourny gfourny at inf.ethz.ch
Fri Feb 6 21:35:50 PST 2009


  XQuery and Item Orientation
Hello Hans-Juergen,

Yes, I agree with you, this is a drawback. For users writing complex  
queries, it is not necessarily clear what the context item is, so that  
with our notation (the same for function calls and method/item- 
function calls) a user might perform a method/item-function call  
without being aware of it. I like your idea of making item-function  
calls explicit with another notation, which solves this problem. In  
addition, XQuery does make a difference between variables (with a $)  
and access to children of the context item (without a $), so it makes  
sense to also make a difference between functions and methods/item- 
functions, it would be a nice symmetry.

Kind regards,
Ghislain Fourny


Am 30.01.2009 um 08:16 schrieb Hans-Juergen Rennau:

>
> The predictability would of course be the same as with XML Schema -  
> total. But perhaps I should point out one difference between your  
> approach and mine (if I understood you correctly): you chose to make  
> any function call potentially an item function call, with the  
> current context item providing the "candidate item". You wrote:
>   $triangle/rotate()
> whereas I prefer to make item calls explicit:
>   $triangle/.->rotate()
>
> This does play a role in terms of lucidity, dont't you think?
>


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.