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

XQuery and databases - XQuery 2.0

Michael Kay mike at saxonica.com
Mon Jun 8 18:11:38 PDT 2009


  XQuery and databases - XQuery 2.0
> 
> > let $path :='http://localhost:8080/exist/rest/db/my.xml'
> > ...doc(path )...
> > 
> > -> FileNotFoundException: 
> > -> http://localhost:8080/exist/rest/db/Abteilung_DocIDinRepo.xml
> > (I tried several other paths and combinations)
> 
> Just use a relative URI: doc("/db/my.xml"). The xquery is 
> running on the server. It knows and has access to all 
> documents stored there. There's no need to use an HTTP URI here.
> 

Or if you really do want eXist simply to return the whole document, and then
to run client-side queries against the returned document, you could use a
free-standing (non-database) query processor like Saxon on the client side.
Sometimes if you want to do intensive processing that will use most of the
data in the document, and if you know exactly what document you want to
process, then it can make sense to do this processing on the client side.

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-2007 All Rights Reserved.