Re: [basex-talk] Declaring namespaces in xquery:eval call
On 09.08.2019 20:50, Buddy Kresge wrote: I am trying to do something like xquery:eval(“some:function()”), and when I go to execute I get “[XPST0081] No namespace declared for ‘some:function’ Can't you just declare the proper namespace in a prolog of the code you pass to eval e.g. xquery:eval("declare namespace some = 'http://example.com'; some:function()") ?
[basex-talk] Declaring namespaces in xquery:eval call
I am trying to do something like xquery:eval("some:function()"), and when I go to execute I get "[XPST0081] No namespace declared for 'some:function' I did read the reference that was sited in your documentation for how to declare a namespace binding (http://www.jclark.com/xml/xmlns.htm), but am still having no luck Can you help me with what the map should look like given the following attempt: like xquery:eval("some:function()", map { ? } ) Thanks in advance. Buddy Kresge