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

flowrrr - how to structure a function?

Michael Kay mhk at mhk.me.uk
Tue Oct 17 23:26:13 PDT 2006


  flowrrr - how to structure a function?
> 
> What is the recommended way to connect to the results of an 
> XQuery statement and something that can make side effects in 
> an efficient/realistic way?
> 

If the aim of your query is to produce the response to an HTTP request, then
I would construct the result tree in the body of the query, and then
serialize the output as XML or XHTML to write the response. Or in a more
complex scenario I would write a pipeline in which the query gets the
necessary data from the database or elsewhere, and then passes it to an XSLT
transformation for formatting.

I can see that it's tempting in this situation to use extension functions to
set the HTTP headers, but I would resist that. Better to do this from the
application (written in Java or whatever) that invokes the query.

Michael Kay   



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.