Hi Andreas.
Hi Jan,you don't have a currently opened collection, when you start the process in Eclipse. So youhave to open a database before running the query.The only way i could figure out how to do it, is the following:Set interpreter parameters to the following:-Uadmin -Padmin -nlocalhost -p1984 -bdoc=factbookand get the external variable in the query:(: XQuery main module :)declare variable $doc external;db:open($doc)//cityMaybe there is a other way by adding -c"open factbook" to the interpreter parameters, but i couldnt figure out how.-- AndreasAm 23.06.2011 um 01:40 schrieb Jan Vlčinský (CAD):_______________________________________________HiI am currently trying to learn, how to use Oxygen and/or Eclipse to develop XQueries.For installation I followed just the instructions form wiki http://docs.basex.org/wiki/Integrating_oXygen and http://docs.basex.org/wiki/Integrating_EclipseWith Eclipse it worked for me a bit easier, the only problem I had was to specify in the code, what collection I am going to use as default one. My wish is that my xquery code does not have to refer explicitly to single collecion name (configuring collection name around the xquery is fine, but I want prevent having it in the xquery code itself).I did not find any method how to do this.With using explicit collection name in the xquery code it works well. I know I could employ some external parameter and use it to bear the name of the collection, but this is still not, what I would call "use the currently opened collection" and I do not like the fact, my code has to be modified for this purpose.With oxygen is the situation the same with the complication, it keeps asking for xml input, when I use XQuery Transformation - and that is not, what I need.Any advise?JanIng. Jan Vlčinský
CAD programy
Slunečnicová 338/3, 734 01 Karviná Ráj, Czech Republic
tel: +420-597 602 024; mob: +420-608 979 040
skype: janvlcinsky; GoogleTalk: jan.vlcinsky@gmail.com
http://cz.linkedin.com/in/vlcinsky
BaseX-Talk mailing list
BaseX-Talk@mailman.uni-konstanz.de
https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk