Can not use a foreign namespace function in BaseX

Saturday, 20 June 2015 · 2 messages · last reply 22 Jun 2015
RB
Robert Berger20 Jun 2015 21:50 #
I go to http://www.xqueryfunctions.com/ and download functx-1.0-doc-2007-01.xq I open that xq file in the editor and run it (Green Arrow). But if I try to use any function it fails !! [image: Inline image 1] Thanks, Bob Berger
CG
Christian Grün22 Jun 2015 09:18 #
Hi Robert, The functx is an XQuery module; you need to reference it from your query via the "import module" statement. Please see our documentation for more information [1]. Next, your screenshot indicates that you tried to send the query in the "Command" mode. You need to select "XQuery" in the dropdown box. Otherwise, your input will be interpreted as BaseX command [2]. Best, Christian [1] http://docs.basex.org/wiki/Repository#Accessing_Modules [2] http://docs.basex.org/wiki/Commands
Quoted text · Robert Berger · 12 lines
On Sat, Jun 20, 2015 at 7:49 PM, Robert Berger <work.berger at gmail.com> wrote: > > I go to http://www.xqueryfunctions.com/ and download > functx-1.0-doc-2007-01.xq > > I open that xq file in the editor and run it (Green Arrow). > But if I try to use any function it fails !! > > > > Thanks, > Bob Berger

⚡Generated with XQuery