[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

Wolfgang wolfgang at exist-db.org
Mon Jun 8 20:46:05 PDT 2009


  XQuery and databases - XQuery 2.0
> I am not running the query in the server. I use xquery "standalone", triggered with java or VB.net using saxon.

Sure, you can use saxon on the client to query a document stored in 
eXist. As Michael already said, this makes sense in some cases. However, 
to avoid misunderstandings: please note that your query will not benefit 
from any database features this way and you will be using eXist as a 
plain container. To benefit from indexes, you have to use eXist's own 
query engine (I think this applies to all other xmldb's as well).

> Yes,I want to retrieve a whole document, even on a different server, and normally I get the full name.

Ok, your original approach should work then. Using saxon I can query a 
document stored in eXist with e.g.

doc("http://localhost:8080/exist/rest/db/examples.xml")//query

> If I want to retrieve more documents, I could use collections, right? (I have not used collections yet)

What constitutes a collection is implementation dependent. If you are 
using saxon on the client, you need to create a saxon collection.

Wolfgang


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.