Hi I 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_Eclipse
With 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?
Jan *Ing. 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
Hi Jan,
you don't have a currently opened collection, when you start the process in Eclipse. So you have 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=factbook
and get the external variable in the query:
(: XQuery main module :) declare variable $doc external; db:open($doc)//city
Maybe there is a other way by adding -c"open factbook" to the interpreter parameters, but i couldnt figure out how.
-- Andreas
Am 23.06.2011 um 01:40 schrieb Jan Vlčinský (CAD):
Hi I 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_Eclipse
With 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?
Jan Ing. 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
Hi Andreas. Thanks for ideas and hints. It seems, like neither Eclipse plugin nor oxygen has any provision for this in the design of their tool. There would have to be either some parameter to specify, which would be applied to getting connected to BaseX, or there would have to be some provision for preprocessing steps (to open connection and some database).
The solution with command line parameter seems good idea, I will try in coming days.
Jan
On 23 June 2011 11:58, Andreas Weiler andreas.weiler@uni-konstanz.dewrote:
Hi Jan,
you don't have a currently opened collection, when you start the process in Eclipse. So you have 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=factbook
and get the external variable in the query:
(: XQuery main module :) declare variable $doc external; db:open($doc)//city
Maybe there is a other way by adding -c"open factbook" to the interpreter parameters, but i couldnt figure out how.
-- Andreas
Am 23.06.2011 um 01:40 schrieb Jan Vlčinský (CAD):
Hi I 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_Eclipse
With 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?
Jan *Ing. 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
basex-talk@mailman.uni-konstanz.de