[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

Dave Pawson dave.pawson at gmail.com
Sat Jan 24 16:24:51 PST 2009


  Linking Saxon through to exist database
2009/1/24 Andrew Welch <http://x-query.com/mailman/listinfo/talk>:
>> My simple logic.
>> Saxon provides an xquery interface.
>> Why can't I use the two together?
>
> It would need to know about eXist's underlying data model, how to use
> its indexes etc

OK, makes sense. Tks



>> It did work with the exist REST interface.... can you
>> explain a bit better what you mean by treating exist
>> as a filestore? ... What else is exist?
>
> ok, for example you have 10,000 xml file of 1mb each stored in eXist -
> if each doc had a <title> element you could get all of them by doing
>
> //title
>
> and this would be very fast as eXist has indexed all the elements etc.
>
> If you were using Saxon and going through the REST interface you would
> have to either:
>
> - get each individual document through say the doc() function (so the
> xml may as well just be on your filesystem)
>
> - write a query in eXist that gets all the title elements and returns
> well-formed xml, and then hit that with the doc() function from Saxon.
>  This is good, however eXist will build and serialise the intermediate
> tree which Saxon will then reparse... (and you also have to code to
> that intermediate tree rather than the data itself)
>
>
>> Sounds like I'm missing another api into exist?
>> The "smart" one?
>
> Just write your xquery in eXist... I'd only use Saxon for XSLT 2.0

OK. Thanks Andrew.

Next question, how to use emacs and a cli interface to exist.
I'll go poke about.

TTFN Saxon.


regards



-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk


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.