URI for xquery : collection()

Monday, 16 January 2012 · 1 message
CG
Christian Grün16 Jan 2012 19:23 #
Dear Francesco, in oXygen, if your databases are locally stored, you can directly address the database you are working with by using e.g. the db:open() function:
  for $text in db:open("lettres_20120109", "Info2085.xml")/tei:TEI ....
Currently, however, you'lll not be able to traverse collections on a remote server via oXygen; in this case, you'll have to resort to one of the other APIs/tools, or wait for an updated version of our XQJ implementation, which will also support remote connections. Hope this helps, more questions are welcome, Christian
Quoted text · Francesco Beretta · 30 lines
On Mon, Jan 16, 2012 at 7:12 PM, Francesco Beretta <Francesco.Beretta at ish-lyon.cnrs.fr> wrote: > Hi, > > as a beginner with BaseX, I'm trying to execute a xquery via an OxygenXML > transformation scenario on an external server. > > I created the data source and connection as explained in the BaseX wiki. > > The xquery functions well on a single document, with following connection > syntax : > > "for $text in > doc('http://admin:*****@10.211.55.5:8984/webdav/lettres_20120109/Info2085.xml')/tei:TEI > ..." > > But it doesn't work against the whole database if I write : > "for $text in > collection('http://admin:*****@10.211.55.5:8984/webdav/lettres_20120109')/tei:TEI > ...". > > It works fine if I use the baseX GUI on the 10.211.55.5 server (which > becomes a localhost) : > "for $text in collection('lettres_20120109')/tei:TEI" > > What I'm doing wrong ? > > Many thanks and greetings > > Francesco Beretta

⚡Generated with XQuery