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

Re: For loop over a collection, multiple

Michael Kay mike at saxonica.com
Wed Mar 3 09:21:10 PST 2010


  Re: For loop over a collection
> But you are right, interesting programs have side effects, 
> that is why we are running them. I just don't think the side 
> effects must or should be programmed in XQuery.

Yes: I have to say I'm inclined to push the model of using XProc as the
necklace that ties things together, and XQuery/XSLT for the processing
beads. The pipeline can be stateful while the individual steps are
stateless. I think using two languages with a shared data model actually
enforces a useful architectural separation that encourages modularity and
reusability of processing components which is hard to achieve if you write
everything in XQuery. It enables you to mix technologies very easily, and to
distribute the application across machines. It also fits in well with
XForms, which is a technology that deserves to be used far more than it is.

My last project had a step in the pipeline whose job was to fetch user
account information from a relational database. It makes sense to write that
in Java/SQL and integrate it at the pipeline level. Yes, you can do it via
an XQuery engine that will access a relational back-end, but that doesn't
mean you have to. You don't want to be limited to doing the things that your
chosen XQuery engine happens to support, and you don't want to start writing
XQuery code whose only role is to call methods written in Java.

Regards,

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




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.