Re: [basex-talk] test if a namespace prefix is declared

2015-02-11 Thread Emmanuel Chateau
Thanks a lot ! It helps really (as you do always). Emmanuel > Le 11 févr. 2015 à 09:01, Christian Grün a écrit : > > An addendum: XQuery 3.1 will provide a new function > fn:load-xquery-module [1]. We haven't implemented it so far, as we > first need to sort out various questions first. It may a

Re: [basex-talk] test if a namespace prefix is declared

2015-02-11 Thread Christian Grün
An addendum: XQuery 3.1 will provide a new function fn:load-xquery-module [1]. We haven't implemented it so far, as we first need to sort out various questions first. It may also be that the specification changes along with the first implementations. But it may be something similar to what you have

Re: [basex-talk] test if a namespace prefix is declared

2015-02-10 Thread Christian Grün
Emmanuel, Sorry for letting you wait! I guess you would like to have a function like function-lookup("*:abc") ? I looked at your example, and I must confirm there is no way to look up functions if the namespace is unknown. I see two ways out: 1. Use inspect:functions() to browse through all stat

Re: [basex-talk] test if a namespace prefix is declared

2015-02-10 Thread Emmanuel Chateau
Hi Christian, Here is the example of what we would achieve : https://gist.github.com/emchateau/5d8af7f53d6f346512c1 Thanks, Emmanuel and Philippe > Le 10 févr. 2015 à 14:26, Christian Grün a écrit : > > to

Re: [basex-talk] test if a namespace prefix is declared

2015-02-10 Thread Christian Grün
Hi Emmanuel, Could you possible give us an example? Do you try to do something like.. function-lookup(xs:QName('pref:ln')) ..and would you like to find out the namespace for the 'pref' prefix? Best, Christian On Tue, Feb 10, 2015 at 2:01 PM, Emmanuel Chateau wrote: > We wanna test if a fu

[basex-talk] test if a namespace prefix is declared

2015-02-10 Thread Emmanuel Chateau
We wanna test if a function exists with fn:function-lookup As fn:function-lookup only takes QNames, in some cases the namespace isn’t declared. So unsurprisingly, we get an error FONS0004 No namespace declared for prefix ‘……’ Is there any way to test if the namespace is declared first ? Thanks