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

cross implementation XQuery

Michael Kay mike at saxonica.com
Wed Sep 10 09:59:02 PDT 2008


  cross implementation XQuery
Personally, I don't think you should try to write entire applications in
XQuery. You should use XQuery for tasks that it is good at, and then
integrate the application using some other level of technology, for example
a pipeline processor. This way I think there is far less need to do anything
platform-dependent in the XQuery logic, and you end up with XQuery code that
is much more versatile and reusable.

Perhaps the main reason for this view is the absence of any dynamic despatch
mechanism in XQuery. This makes it very hard to write XQuery code that is
capable of doing more than one job, or of doing the same job in different
circumstances.

I've seen it done by compile-time manipulation of "import module" in the way
you suggest, but it's no fun.

Michael Kay
http://www.saxonica.com/ 

> -----Original Message-----
> From: http://x-query.com/mailman/listinfo/talk 
> [mailto:http://x-query.com/mailman/listinfo/talk] On Behalf Of Robert Koberg
> Sent: 10 September 2008 01:59
> To: http://x-query.com/mailman/listinfo/talk
> Subject:  cross implementation XQuery
> 
> Hi,
> 
> How do you write XQuery in a cross processor/implementation 
> way? It seems (to me) that you need extension functions. For 
> example, you want to write a XQuery based webapp that might 
> be be used by 2 or more processors/XMLDBs.
> 
> Do you keep webapp logic out of your XQuery?
> 
> Is there a cross processor equivalent to XSL's function-available()?
> 
> Do you create generic functions mapping to various impl 
> specific functions, place those in impl specific import 
> modules, and use a custom URIResolver to resolve imports 
> based on the impl? Do implementations have a standard way to 
> assign these resolvers?
> 
> Other ways?
> 
> best,
> -Rob
> _______________________________________________
> http://x-query.com/mailman/listinfo/talk
> http://x-query.com/mailman/listinfo/talk



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.