[xquery-talk] XQuery and databases - XQuery 2.0

Houghton,Andrew houghtoa at oclc.org
Mon Jun 8 12:15:06 PDT 2009


> From: talk-bounces at x-query.com [mailto:talk-bounces at x-query.com] On
> Behalf Of derstubbi at gmx.de
> Sent: Monday, June 08, 2009 11:09 AM
> To: talk at x-query.com
> Subject: [xquery-talk] XQuery and databases - XQuery 2.0
> 
> Hi,
> I have several questions concerning XQuery :
> 
> 1)
> how can I use a xml-file stored in a database ?
> I tried with eXist but i did not work:
> 
> 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)
> 
> When I use the path in my browser, I can see the file.
> What am I doing wrong ?

Did you try ...doc($path)...


Andy.




More information about the talk mailing list