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

Linking Saxon through to exist database

Wolfgang wolfgang at exist-db.org
Sat Jan 24 13:06:04 PST 2009


  Linking Saxon through to exist database
> I've installed exist and using it's sandbox its working fine.

Since this is a product specific question, it should probably be 
discussed on the eXist mailing list. Anyway ...

> Can I connect a query to that database and use
> Saxon for the query engine?
> 
> http://localhost:8080/exist  is the http endpoint.
> 
> http://en.wikibooks.org/wiki/XQuery/Searching_multiple_collections
> shows using let $col-a := '/db/test/a'
> which is clearly incorrect for the file protocol?

You can access documents via HTTP using e.g.

http://localhost:8080/exist/rest/db/test/a/books.xml

Using this link within e.g. an XSLT will be ok (though not efficient for 
larger docs). BUT: collections are a different matter since different 
XQuery implementations use different concepts of what consitutes a 
collection.

http://localhost:8080/exist/rest/db/test/a

returns an XML fragment listing the collection contents. If you really 
need to, you could pre-process that somehow to include all collection 
member documents. But as I said, it might not be very efficient.

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.