Thanks Liam, you are right, the shortest way to achieve should be the following:
> let $path-to-query-file := base-uri(<_/>) Best from Konstanz Michael Am 02.04.2013 um 05:36 schrieb Liam R E Quin <l...@w3.org>: > On Mon, 2013-04-01 at 13:36 -0400, Graydon Saunders wrote: > >> I'd like to be able to say something like >> >> let $decisionSchema := >> concat(string-join(tokenize(get-query-path(),'/')[position() ne >> last()],'/'),'/decisions_schema.xsd') >> >> only I can't figure out what get-query-path() is. > > For many Query engines it won't be defined. > > You could try constructing an element and asking for its base URI I > suppose. > > Liam > > -- > Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/ > Pictures from old books: http://fromoldbooks.org/ > Ankh: irc.sorcery.net irc.gnome.org freenode/#xml > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk@mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk