Hi Christian, Hi Dirk,
thank you for your input! I know realize, that indeed I’d like to have a complete debugging framework.
Am 17.01.2014 um 14:39 schrieb Christian Grün christian.gruen@gmail.com:
Hi Sebastian,
Would it be possible (or is there a feature present, that I am not aware of) to evaluate XPath expressions in XQuery functions right in the BaseX editor?
0 Just a small addition: I completely agree with Dirk that such a feature would be pretty tricky, as the environment is always important and must be parsed, too. Next, values of variables change during runtime, so we’d probably need some debugging framework for that (we’ve actually started some work on that, but it’s too early to tell the direction we’ll be heading here).
I’m looking forward to that!
(I know I can use another editor tab, copy all "import module“ declarations needed from the current file, declare variables for the parameters, copy the function (because it is not in a repo-module, I can’t import it, or can I?) and then call the function and return the path. But this is also time consuming.)
You can import non-repo modules by specifying the location of your module, relative to your current file:
import module namespace bla = "blabla" at "../relative/path.xqm"; …
Cool. Thank you, I thought even with a given path in the import statement the module would have had to live in the repo.
Thanks, Sebastian
Hope this helps, Christian _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk