[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 12:24:10 PST 2009


  Linking Saxon through to exist database
2009/1/24 Wolfgang <http://x-query.com/mailman/listinfo/talk>:
>> 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 ...

Cross product? :-)


> You can access documents via HTTP using e.g.
>
> http://localhost:8080/exist/rest/db/test/a/books.xml

wget on http://localhost:8080/exist/rest/db/books/a works fine here.

Using Saxon I get

Error
  XPTY0019: Required item type of first operand of '/' is node();
supplied value has item
  type xs:string
Static error(s) in query

(no indication on line number so I'm not sure if its' the let or the
for statement in error.)

for
let $a := 'http://localhost:8080/exist/rest/db/books/a'

return
<books>{
for $book in $a//book
  return
  $book
}</books>

where 'books' is the collection.



-- 
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.